STINNER Victor added the comment:

> Why do you think this isn't a good idea?

If the command fails, you simplify have no idea of what happened. For example, 
thanks to stdout/stderr, you noticed the warning. Without stdout/stderr, the 
warning should be hidden.

webbrowser is already able to detect that GNOME is running and uses gvfs-open 
in that case. Maybe we should exchange these two blocks of code to prefer 
gvfs-open over xdg-open on GNOME?

    # use xdg-open if around
    if shutil.which("xdg-open"):
        register("xdg-open", None, BackgroundBrowser("xdg-open"))

    # The default GNOME3 browser
    if "GNOME_DESKTOP_SESSION_ID" in os.environ and shutil.which("gvfs-open"):
        register("gvfs-open", None, BackgroundBrowser("gvfs-open"))

Do you get the warning if you use gvfs-open?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30219>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to