Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS requires QT_MAC_WANTS_LAYER=1 to show QGIS GUI #183

Closed
jakimowb opened this issue Apr 12, 2021 · 5 comments
Closed

macOS requires QT_MAC_WANTS_LAYER=1 to show QGIS GUI #183

jakimowb opened this issue Apr 12, 2021 · 5 comments
Labels
Wait feedback Waits feeedback from the issue creator

Comments

@jakimowb
Copy link
Contributor

On macOS it has been observed that the QGIS GUI might not be shown, despite it can be started from the conda shell and a new item appears in the macOS dock.

This can be solved by exporting the environmental variable:

export QT_MAC_WANTS_LAYER=1

Preferably this will be fixed in Qt (#159 (comment)), however, until this happens, I think it is a good idea to keep this issue open, so that users can find this workaround easier.

If you don't mind @gillins, I can prepare a PR to mention this issue in the readme.md as well.

@gillins
Copy link
Contributor

gillins commented Apr 12, 2021

FYI there is some work underway ATM to upgrade Qt which includes the fix for Big Sur (conda-forge/qt-feedstock#189)

Happy to look at PR for readme.md in the meantime.

jakimowb added a commit to jakimowb/qgis-feedstock that referenced this issue Apr 12, 2021
jakimowb added a commit to jakimowb/qgis-feedstock that referenced this issue Apr 12, 2021
Signed-off-by: Benjamin Jakimow benjamin.jakimow@geo.hu-berlin.de <benjamin.jakimow@geo.hu-berlin.de>
gillins pushed a commit that referenced this issue Apr 13, 2021
Signed-off-by: Benjamin Jakimow benjamin.jakimow@geo.hu-berlin.de <benjamin.jakimow@geo.hu-berlin.de>
@amorfinv
Copy link

Thanks for this! Actually it only worked for me if I add quotes to the environment variable.

export QT_MAC_WANTS_LAYER="1"

@SrNetoChan
Copy link
Contributor

@amorfinv Is this still true with the new 3.22 package?
@gillins Is this something we could change on our recipe to make this fix permanent?

@SrNetoChan SrNetoChan added the Wait feedback Waits feeedback from the issue creator label Oct 11, 2022
@amorfinv
Copy link

Hello @SrNetoChan,

I no longer need this environment variable for 3.22. It works without it!

However, I still get many warnings.

Warning: Broken filename passed to function
Warning: Broken filename passed to function
Warning: Broken filename passed to function
Warning: Broken filename passed to function
Warning: Broken filename passed to function
Warning: Broken filename passed to function
Warning: Broken filename passed to function
Warning: Populating font family aliases took 214 ms. Replace uses of missing font family "FreeSans" with one that exists to avoid this cost.
Warning: Broken filename passed to function
Warning: Broken filename passed to function
Warning: Broken filename passed to function
Warning: QWidget::insertAction: Attempt to insert null action
Warning: QWidget::insertAction: Attempt to insert null action
Warning: QWidget::insertAction: Attempt to insert null action
Warning: Broken filename passed to function
Warning: QLayout::removeWidget: Cannot remove a null widget.
<string>:1: DeprecationWarning: setapi() is deprecated

@SrNetoChan
Copy link
Contributor

As long its warnings... I am going to close this ticket. Please feel free to open a new one in case does warnings affect your work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Wait feedback Waits feeedback from the issue creator
Projects
None yet
Development

No branches or pull requests

4 participants