From db5a4f84f6a69747e841287db0c93ddd1c168747 Mon Sep 17 00:00:00 2001 From: Chase Sterling Date: Fri, 9 Nov 2012 18:24:26 -0500 Subject: [PATCH] Fix daemon starting with config dir containing spaces on Windows. --- deluge/ui/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/client.py b/deluge/ui/client.py index e8fab851e..3feba4c57 100644 --- a/deluge/ui/client.py +++ b/deluge/ui/client.py @@ -630,7 +630,7 @@ class Client(object): """ try: if deluge.common.windows_check(): - win32api.WinExec("deluged --port=%s --config=%s" % (port, config)) + win32api.WinExec("deluged --port=%s --config=\"%s\"" % (port, config)) elif deluge.common.osx_check(): subprocess.call(["nohup", "deluged", "--port=%s" % port, "--config=%s" % config]) else: