Kaydet (Commit) f4a9ac25 authored tarafından Jack Jansen's avatar Jack Jansen

Workaround for bug #644243 (which is actually an Apple bug, I think): URLs

of the form file:/path/to/file don't work whereas file:///path/to/file
works fine. We convert the former to the latter.
üst c28fc37e
...@@ -195,6 +195,10 @@ class IC: ...@@ -195,6 +195,10 @@ class IC:
self.ic.ICSetPref(key, ICattr_no_change, value) self.ic.ICSetPref(key, ICattr_no_change, value)
def launchurl(self, url, hint=""): def launchurl(self, url, hint=""):
# Work around a bug in ICLaunchURL: file:/foo does
# not work but file:///foo does.
if url[:6] == 'file:/' and url[6] != '/':
url = 'file:///' + url[6:]
self.ic.ICLaunchURL(hint, url, 0, len(url)) self.ic.ICLaunchURL(hint, url, 0, len(url))
def parseurl(self, data, start=None, end=None, hint=""): def parseurl(self, data, start=None, end=None, hint=""):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment