New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect URL with webbrowser and firefox under Gnome #45398
Comments
Under Gnome, Firefox will open the wrong URL when launched by bingham@grizzly:~> python
Python 2.5.1 (r251:54863, Jun 6 2007, 13:42:30)
[GCC 4.1.2 20061115 (prerelease) (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import webbrowser
>>> webbrowser.open('http://www.python.org')
True Firefox attempts to open the URL This is caused by a bug in the Python standard library's webbrowser On Gnome, webbrowser runs the command gconftool-2 -g /desktop/gnome/url-handlers/http/command 2>/dev/null to find the web browser, which prints out a browser command line like /pkgs/Firefox/2.0/firefox "%s" The quotes around "%s" are preserved when passing the command-line The BROWSER environment variable issue, now fixed, is described at |
The current code in the 2.5 branch uses shlex.split to postprocess the |
I am on Fedora Core 3, gnome 2.6 and I am unable to reproduce this issue. |
Okay. I found the status later. It was fixed then with Python 2.6 which |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: