summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xportato.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/portato.py b/portato.py
index 0776e10..7f5308c 100755
--- a/portato.py
+++ b/portato.py
@@ -109,7 +109,7 @@ def main ():
try:
if os.getuid() != 0:
- call([SU_COMMAND, "%s --no-listener %s" % (sys.argv[0], " ".join(additional))], env = os.environ)
+ call(SU_COMMAND.split()+["%s --no-listener %s" % (sys.argv[0], " ".join(additional))], env = os.environ)
else:
call([sys.argv[0], "--no-listener"]+additional, env = os.environ)
except KeyboardInterrupt: