This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hans-meine
Recipients hans-meine, ned.deily, ronaldoussoren
Date 2021-02-03.09:21:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1612344094.48.0.0202402812851.issue43111@roundup.psfhosted.org>
In-reply-to
Content
For a long time, I wondered why opening Jupyter notebooks through nbopen always led to XQuartz starting.  Now, I found the reason: nbopen uses webbrowser.py to open a web page, and webbrowser.py sees the `DISPLAY` variable being set and calls xdg-settings (which I installed via the xdg-utils port / MacPorts).

Apparently, in order to be able to fire up XQuartz on demand and to allow people starting X11 applications, `DISPLAY` is set to a string like `/private/tmp/com.apple.launchd.<somecode>/org.xquartz:0`.

I am using Safari and find this starting of XQuartz undesirable (causes a delay, uses system resources, leads to a new running program in the Dock / task switcher). On the other hand I can totally understand that the code makes sense.

As a workaround, I can unset DISPLAY, or uninstall xdg-utils (although it is useful, and may be a dependency of other ports), but I thought I should also bring it up here for discussion.
History
Date User Action Args
2021-02-03 09:21:34hans-meinesetrecipients: + hans-meine, ronaldoussoren, ned.deily
2021-02-03 09:21:34hans-meinesetmessageid: <1612344094.48.0.0202402812851.issue43111@roundup.psfhosted.org>
2021-02-03 09:21:34hans-meinelinkissue43111 messages
2021-02-03 09:21:33hans-meinecreate