Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
da80b1eb
Commit
da80b1eb
authored
Apr 04, 2012
by
Matthias Klose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Issue #14493: Use gvfs-open/xdg-open in Lib/webbrowser.py.
parent
597e6b4c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
Lib/webbrowser.py
Lib/webbrowser.py
+8
-0
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/webbrowser.py
View file @
da80b1eb
...
...
@@ -448,6 +448,14 @@ class Grail(BaseBrowser):
def
register_X_browsers
():
# use xdg-open if around
if
_iscommand
(
"xdg-open"
):
register
(
"xdg-open"
,
None
,
BackgroundBrowser
(
"xdg-open"
))
# The default GNOME3 browser
if
"GNOME_DESKTOP_SESSION_ID"
in
os
.
environ
and
_iscommand
(
"gvfs-open"
):
register
(
"gvfs-open"
,
None
,
BackgroundBrowser
(
"gvfs-open"
))
# The default GNOME browser
if
"GNOME_DESKTOP_SESSION_ID"
in
os
.
environ
and
_iscommand
(
"gnome-open"
):
register
(
"gnome-open"
,
None
,
BackgroundBrowser
(
"gnome-open"
))
...
...
Misc/NEWS
View file @
da80b1eb
...
...
@@ -29,6 +29,8 @@ Library
a multiprocessing Client or Listener with an AF_PIPE type address under
non-Windows platforms. Patch by Popa Claudiu.
- Issue #14493: Use gvfs-open/xdg-open in Lib/webbrowser.py.
What'
s
New
in
Python
3.3.0
Alpha
2
?
===================================
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment