[issue30219] webbrowser.open outputs xdg-open deprecation warning

2017-05-12 Thread desbma
desbma added the comment: The only issue with Python itself is that the output of a subprocess call hidden behind a high level abstraction is thrown into the user's face in an unexpected way. This just does not seem to be the right thing to do to me. The deprecation warning of xdg-open/gvfs-op

[issue30219] webbrowser.open outputs xdg-open deprecation warning

2017-05-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This bug already is fixed in develop branch of xdg-open. But the version including that fix still is not released. There may be years until it be released and main distributives update xdg-open. -- ___ Python trac

[issue30219] webbrowser.open outputs xdg-open deprecation warning

2017-05-12 Thread STINNER Victor
STINNER Victor added the comment: 2017-05-11 20:42 GMT+02:00 desbma : > Of course, because gvfs-open is precisely the cause of the deprecation warning I don't understand something. Why do you consider that it's a Python bug, whereas xdg-open redirects to the deprecated gvfs-open tool? Why not r

[issue30219] webbrowser.open outputs xdg-open deprecation warning

2017-05-11 Thread desbma
desbma added the comment: > For example, thanks to stdout/stderr, you noticed the warning. Without > stdout/stderr, the warning should be hidden. That is true, but as a Python user, it don't need to see that warning, only the xdg-utils developers do. I would have never seen it, and it would ne

[issue30219] webbrowser.open outputs xdg-open deprecation warning

2017-05-11 Thread STINNER Victor
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 dete

[issue30219] webbrowser.open outputs xdg-open deprecation warning

2017-05-11 Thread desbma
desbma added the comment: Why do you think this isn't a good idea? As a user, what am supposed to do with that warning: * about a program I have no idea I was calling (the webbrowser module abstraction is here so I don't have to think about it) * I have no control about it's invocation * the ou

[issue30219] webbrowser.open outputs xdg-open deprecation warning

2017-05-10 Thread STINNER Victor
STINNER Victor added the comment: p = subprocess.Popen(cmdline, close_fds=True, + stdin=subprocess.DEVNULL, + stdout=subprocess.DEVNULL, + stderr=subprocess.DEVNULL,

[issue30219] webbrowser.open outputs xdg-open deprecation warning

2017-05-10 Thread desbma
desbma added the comment: Ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailm

[issue30219] webbrowser.open outputs xdg-open deprecation warning

2017-05-02 Thread desbma
desbma added the comment: Also most other Popen calls in the webbrowser module already silence the called program's output, so it makes sense to do the same for the BackgroundBrowser class. Here is a small patch for discussion. -- keywords: +patch Added file: http://bugs.python.org/fi

[issue30219] webbrowser.open outputs xdg-open deprecation warning

2017-05-02 Thread desbma
desbma added the comment: I'm on Arch Linux with Cinnamon, all packages up to date and xdg-utils 1.1.1 (https://www.archlinux.org/packages/extra/any/xdg-utils/). The fix you mention has not been included in a release yet, last release of xdg-utils is from 2015 (https://portland.freedesktop.org

[issue30219] webbrowser.open outputs xdg-open deprecation warning

2017-05-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Seems it outputs the warning only on Gnome. Actually, xdg-open tries to run gvfs-open if it is installed and it is the tool now depreciated. This issue is fixed in mainstream. [1] [1] https://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=0d6eebb27c562e8644c

[issue30219] webbrowser.open outputs xdg-open deprecation warning

2017-05-01 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30219] webbrowser.open outputs xdg-open deprecation warning

2017-05-01 Thread desbma
Changes by desbma : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue30219] webbrowser.open outputs xdg-open deprecation warning

2017-05-01 Thread desbma
New submission from desbma: Python 3.6.1 (default, Mar 27 2017, 00:27:06) [GCC 6.3.1 20170306] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import webbrowser >>> webbrowser.open("https://www.google.com";) True >>> This tool has been deprecated, use 'gio ope