escape spaces in paths given to reveal()
This commit is contained in:
parent
f9c644b964
commit
4cd1cdf495
1 changed files with 2 additions and 2 deletions
|
@ -2229,9 +2229,9 @@ class LBRYDaemon(jsonrpc.JSONRPC):
|
||||||
|
|
||||||
path = p['path']
|
path = p['path']
|
||||||
if sys.platform == "darwin":
|
if sys.platform == "darwin":
|
||||||
d = threads.deferToThread(subprocess.Popen, ("open -R %s" % path), shell=True)
|
d = threads.deferToThread(subprocess.Popen, ("open -R %s" % path.replace(' ', '\ ')), shell=True)
|
||||||
else:
|
else:
|
||||||
d = threads.deferToThread(subprocess.Popen, ("xdg-open %s" % path), shell=True)
|
d = threads.deferToThread(subprocess.Popen, ("xdg-open %s" % path.replace(' ', '\ ')), shell=True)
|
||||||
|
|
||||||
d.addCallback(lambda _: self._render_response(True, OK_CODE))
|
d.addCallback(lambda _: self._render_response(True, OK_CODE))
|
||||||
return d
|
return d
|
Loading…
Reference in a new issue