QGIS
QGIS copied to clipboard
Impossible to use multiple instance of QGIS on MacOS
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

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
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
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)
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.
@SarahJorgensen sure! Your installation path my be different than my, so what I would suggest:
-
In the terminal, cd
/Applications
. Then typecd 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. -
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 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 glad I could help!
So yeah, you will have to do it each time you'd like to open a new QGIS window
For me the path was /Applications/QGIS.app/Contents/MacOS/QGIS
And thanks, this tip was useful.