mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 04:24:27 +00:00
windows support in open_file
This commit is contained in:
parent
c906af496f
commit
7990de2a31
@ -127,7 +127,10 @@ def get_logo(size):
|
|||||||
|
|
||||||
def open_file(path):
|
def open_file(path):
|
||||||
"""Opens a file or folder."""
|
"""Opens a file or folder."""
|
||||||
os.popen("xdg-open \"%s\"" % path)
|
if windows_check():
|
||||||
|
os.startfile("'%s'" % path)
|
||||||
|
else:
|
||||||
|
os.popen("xdg-open '%s'" % path)
|
||||||
|
|
||||||
def open_url_in_browser(url):
|
def open_url_in_browser(url):
|
||||||
"""Opens link in the desktop's default browser"""
|
"""Opens link in the desktop's default browser"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user