mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 05:47:50 +00:00
Fix common.open_file for osx
This commit is contained in:
parent
a3268dd403
commit
9360378ae9
@ -232,6 +232,8 @@ def open_file(path):
|
||||
"""
|
||||
if windows_check():
|
||||
os.startfile("%s" % path)
|
||||
elif osx_check():
|
||||
subprocess.Popen(["open", "%s" % path])
|
||||
else:
|
||||
subprocess.Popen(["xdg-open", "%s" % path])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user