From 9360378ae9d901be6001b2e6a68628e64dff18d0 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 f6cc56131..ea615df20 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -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])