diff options
-rwxr-xr-x | portato.py | 2 | ||||
-rw-r--r-- | portato/plistener.py | 1 |
2 files changed, 1 insertions, 2 deletions
@@ -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:]) |