mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
SF # 539360, webbrowser.py and konqueror, by Andy McKay
Fix Konqueror so it can start when calling open(). The assert needed to be on the raw URL, not openURL 'url...' Will backport.
This commit is contained in:
parent
98a355d0b3
commit
520cdf733a
1 changed files with 2 additions and 2 deletions
|
|
@ -176,8 +176,7 @@ def __init__(self):
|
|||
self.name = self.basename = "kfm"
|
||||
|
||||
def _remote(self, action):
|
||||
assert "'" not in action
|
||||
cmd = "kfmclient '%s' >/dev/null 2>&1" % action
|
||||
cmd = "kfmclient %s >/dev/null 2>&1" % action
|
||||
rc = os.system(cmd)
|
||||
if rc:
|
||||
import time
|
||||
|
|
@ -192,6 +191,7 @@ def _remote(self, action):
|
|||
def open(self, url, new=1, autoraise=1):
|
||||
# XXX Currently I know no way to prevent KFM from
|
||||
# opening a new win.
|
||||
assert "'" not in url
|
||||
self._remote("openURL '%s'" % url)
|
||||
|
||||
open_new = open
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue