From dac524ccf329bbd7d38ab205c79e6413a53fe600 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Tue, 8 May 2012 10:00:22 +0100 Subject: [PATCH] Fix common.open_file for osx --- deluge/common.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deluge/common.py b/deluge/common.py index 4881d16b6..29c37e858 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -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])