summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChase Sterling <chase.sterling@gmail.com>2012-11-09 18:44:36 -0500
committerChase Sterling <chase.sterling@gmail.com>2012-11-09 18:44:36 -0500
commitcd8ab2805cb71819462100f749183ca3567396ea (patch)
tree148420a50194538dd661195f1f582daa254de10f
parentb7ca968fae803eec2845276b888c7aeecb527909 (diff)
downloaddeluge-cd8ab2805cb71819462100f749183ca3567396ea.zip
deluge-cd8ab2805cb71819462100f749183ca3567396ea.tar.gz
deluge-cd8ab2805cb71819462100f749183ca3567396ea.tar.bz2
Fix daemon starting with config dir containing spaces on Windows.
-rw-r--r--deluge/ui/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/ui/client.py b/deluge/ui/client.py
index 4d923ca..ada16d4 100644
--- a/deluge/ui/client.py
+++ b/deluge/ui/client.py
@@ -579,7 +579,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: