QGIS icon indicating copy to clipboard operation
QGIS copied to clipboard

Impossible to use multiple instance of QGIS on MacOS

Open vlebert opened this issue 2 years ago • 7 comments

What is the bug or the crash?

Hi QGIS team,

On macOS, you can't open easily a new instance:

  • If you open a new project from finder, it will ask you to close current project
  • If you try to re-lanch the app it justs pops the current instance.

One workaround is to open a shell and type

open -n /Applications/QGIS-LTR.app

This will actually open a new QGIS window? However, doing so on my machine leads to unusable instance due to projection error. It will occur whatever project is opened in the second instance.

2022-09-20T10:19:07     CRITICAL    Pas de transformation disponible entre EPSG:4326 et EPSG:3857
2022-09-20T10:19:07     CRITICAL    Pas de transformation disponible entre EPSG:32733 et Projection personnalisée
2022-09-20T10:19:07     CRITICAL    Pas de transformation disponible entre EPSG:3857 et EPSG:32733
2022-09-20T10:19:55     CRITICAL    Pas de transformation disponible entre EPSG:4326 et Projection personnalisée
image

I guess some environment parameters are missing from the command line call, but can't figure out which.

Steps to reproduce the issue

  • Open a QGIS instance on Macos
  • Open a second instance doing open -n /Applications/QGIS-LTR.app
  • Open a project in the second instance

Versions

Version de QGIS | 3.22.8-Białowieża

Macbook M1 Pro

Supported QGIS version

  • [X] I'm running a supported QGIS version according to the roadmap.

New profile

  • [X] I tried with a new QGIS profile

Additional context

No response

vlebert avatar Sep 20 '22 08:09 vlebert

For other Mac users having this issue, I have a workaround Create a new QGIS profile. Then Preference>Click on the new profile --> will open a new QGIS windows without the above issues

vlebert avatar Oct 13 '22 15:10 vlebert

Creating a new profile means you'll need to install all the plugins and add all the DB connections from scratch. What I've found works best, is to open a new terminal and launch QGIS from it

/Applications/QGIS-LTR.app/Contents/MacOS/QGIS

(path may slightly vary, be sure to check where it runs from)

mati-o avatar Oct 17 '23 12:10 mati-o

Creating a new profile means you'll need to install all the plugins and add all the DB connections from scratch. What I've found works best, is to open a new terminal and launch QGIS from it

/Applications/QGIS-LTR.app/Contents/MacOS/QGIS

(path may slightly vary, be sure to check where it runs from)

@mati-o can you please provide steps on how to do this? I've recently migrated over to Mac from Windows and just discovered that I can't open multiple projects on MacOS! Really need to open multiple projects. FYI - I opened terminal and pasted the path you provided above in there and hit enter but it returns saying "no such file or directory"....see screenshot attached.

Thanks. image

SarahJorgensen avatar Oct 18 '23 18:10 SarahJorgensen

@SarahJorgensen sure! Your installation path my be different than my, so what I would suggest:

  1. In the terminal, cd /Applications. Then type cd Q and hit Tab to autocomplete (do not hit enter yet). Keep pressing tab until you see QGIS and the hit enter, from there, navigate to the sub directories I have provided.

  2. Another method is to open Finder from the menu, navigate to Applications, right click on QGIS, select "Show Package Contents" and then find the QGIS executable in the sub directories. Once you there, you'll be able to copy the path from Finder.

Let me know if you need more help

mati-o avatar Oct 18 '23 19:10 mati-o

@mati-o Thank you!! I'm not a super tech wiz but this was really helpful. I couldn't quite get the first point but when I followed your second point, it worked.

I'm guessing I need to follow this every time i want to open a second project?

SarahJorgensen avatar Oct 20 '23 09:10 SarahJorgensen

@SarahJorgensen glad I could help!

So yeah, you will have to do it each time you'd like to open a new QGIS window

mati-o avatar Oct 20 '23 14:10 mati-o

For me the path was /Applications/QGIS.app/Contents/MacOS/QGIS

And thanks, this tip was useful.

stevage avatar May 08 '24 00:05 stevage