diff --git a/deluge/common.py b/deluge/common.py index d21499628..2bd7149a2 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -127,7 +127,10 @@ def get_logo(size): def open_file(path): """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): """Opens link in the desktop's default browser"""