[issue43111] webbrowser.py triggers unwanted XQuartz startup

2021-02-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: webbrowser is 'generous' at to what browsers it will open, some of which are not what hardly anyone would want. So I would call this an 'enhancement' (really 'disenchantment', like all removals;-) unless there were a technical reason other than those given

[issue43111] webbrowser.py triggers unwanted XQuartz startup

2021-02-08 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've created a PR for this. Open question: Is this a bug fix (with back ports to 3.9 and 3.8) or a feature (no back ports)? -- ___ Python tracker __

[issue43111] webbrowser.py triggers unwanted XQuartz startup

2021-02-08 Thread Ronald Oussoren
Change by Ronald Oussoren : -- keywords: +patch pull_requests: +23272 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24480 ___ Python tracker ___

[issue43111] webbrowser.py triggers unwanted XQuartz startup

2021-02-06 Thread hans.meine
hans.meine added the comment: I was trying to be very honest, because I am still running 3.7 for production. However, I have carefully checked and the webbrowser.py has only seen (clearly) unrelated changes. -- ___ Python tracker

[issue43111] webbrowser.py triggers unwanted XQuartz startup

2021-02-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: The same code is present in trunk. I'm in favour of disabling usage of X11 browsers of macOS, that's almost certainly not what users want. I no longer have XQuartz installed on my machine, but when I did I only used it for running X11 GUIs on remote Linux

[issue43111] webbrowser.py triggers unwanted XQuartz startup

2021-02-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.7 is a few years old and only gets security fixes. Can you either test on current releases or whether code is still same? -- nosy: +terry.reedy ___ Python tracker __

[issue43111] webbrowser.py triggers unwanted XQuartz startup

2021-02-03 Thread hans.meine
New submission from hans.meine : 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 (whi