mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 03:24:54 +00:00
Fix common.open_file for osx
This commit is contained in:
parent
bafd0209af
commit
dac524ccf3
1 changed files with 2 additions and 0 deletions
|
@ -241,6 +241,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…
Add table
Reference in a new issue