diff options
author | Necoro <> | 2007-10-08 16:56:12 +0000 |
---|---|---|
committer | Necoro <> | 2007-10-08 16:56:12 +0000 |
commit | 0abea23fb64b0ab008ec66a326b07b53737024c8 (patch) | |
tree | 73db66f47f38707521051f3d54aeb5835594a9e8 /portato | |
parent | f8724de3c70d660b86590e961493e32d0385677f (diff) | |
download | portato-0abea23fb64b0ab008ec66a326b07b53737024c8.tar.gz portato-0abea23fb64b0ab008ec66a326b07b53737024c8.tar.bz2 portato-0abea23fb64b0ab008ec66a326b07b53737024c8.zip |
make it work w/ root
Diffstat (limited to '')
-rwxr-xr-x | portato.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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() |