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 Jeremy Attali
Recipients Jeremy Attali
Date 2020-05-25.11:38:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590406688.74.0.158171351248.issue40767@roundup.psfhosted.org>
In-reply-to
Content
In a pure Wayland environment (without xwayland), the DISPLAY environment variable is not present. Therefore the call to `xdg-settings get default-browser` is not made. So the webbrowser behaviour is different between X11 and Wayland environment. I'm working on a fix, should submit a GitHub PR soon.

```
❯ export | grep DISPLAY
WAYLAND_DISPLAY=wayland-0
❯ python -c "import webbrowser; print(webbrowser.get())"
<webbrowser.GenericBrowser object at 0x7f6f1b755160>
```
History
Date User Action Args
2020-05-25 11:38:08Jeremy Attalisetrecipients: + Jeremy Attali
2020-05-25 11:38:08Jeremy Attalisetmessageid: <1590406688.74.0.158171351248.issue40767@roundup.psfhosted.org>
2020-05-25 11:38:08Jeremy Attalilinkissue40767 messages
2020-05-25 11:38:08Jeremy Attalicreate