summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
authorNecoro <>2007-10-08 16:56:12 +0000
committerNecoro <>2007-10-08 16:56:12 +0000
commit0abea23fb64b0ab008ec66a326b07b53737024c8 (patch)
tree73db66f47f38707521051f3d54aeb5835594a9e8 /portato
parentf8724de3c70d660b86590e961493e32d0385677f (diff)
downloadportato-0abea23fb64b0ab008ec66a326b07b53737024c8.tar.gz
portato-0abea23fb64b0ab008ec66a326b07b53737024c8.tar.bz2
portato-0abea23fb64b0ab008ec66a326b07b53737024c8.zip
make it work w/ root
Diffstat (limited to '')
-rwxr-xr-xportato.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/portato.py b/portato.py
index da1ed88..765e070 100755
--- a/portato.py
+++ b/portato.py
@@ -103,7 +103,9 @@ def main ():
additional.extend(["-f", options.frontend])
cmd = SU_COMMAND.split()
- os.execvpe(cmd[0], cmd+["%s --no-listener %s" % (sys.argv[0], " ".join(additional))], env = os.environ)
+ env = os.environ.copy()
+ env.update(DBUS_SESSION_BUS_ADDRESS="")
+ os.execvpe(cmd[0], cmd+["%s --no-listener %s" % (sys.argv[0], " ".join(additional))], env = env)
else: # start listener
listener.set_recv()