summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornecoro <>2007-08-12 04:39:58 +0000
committernecoro <>2007-08-12 04:39:58 +0000
commit99c2d6260a6c9b1a4103b263f083648019d44d49 (patch)
treed5e6f04044775876e1311db4e07b34cd392c5d2f
parentade10e0b8e5571e45cdd4800927c24597e2f7315 (diff)
downloadportato-99c2d6260a6c9b1a4103b263f083648019d44d49.tar.gz
portato-99c2d6260a6c9b1a4103b263f083648019d44d49.tar.bz2
portato-99c2d6260a6c9b1a4103b263f083648019d44d49.zip
added listener/notify
Diffstat (limited to '')
-rwxr-xr-xportato.py2
-rw-r--r--portato/plistener.py1
2 files changed, 1 insertions, 2 deletions
diff --git a/portato.py b/portato.py
index f90fd69..0776e10 100755
--- a/portato.py
+++ b/portato.py
@@ -108,7 +108,7 @@ def main ():
additional.extend(["-f", options.frontend])
try:
- if os.getuid() == 0:
+ if os.getuid() != 0:
call([SU_COMMAND, "%s --no-listener %s" % (sys.argv[0], " ".join(additional))], env = os.environ)
else:
call([sys.argv[0], "--no-listener"]+additional, env = os.environ)
diff --git a/portato/plistener.py b/portato/plistener.py
index 29054b2..1cd7529 100644
--- a/portato/plistener.py
+++ b/portato/plistener.py
@@ -52,7 +52,6 @@ class PListener (object):
string = con.recv(int(len))
data = string.split("\0")
- debug(data)
if data[0] == "notify":
self.do_notify(*data[1:])