summaryrefslogtreecommitdiff
path: root/portato.py
diff options
context:
space:
mode:
authorNecoro <>2007-10-22 22:27:29 +0000
committerNecoro <>2007-10-22 22:27:29 +0000
commit7afdc03507e0aa95f177f8a7c95086de5cfcc06c (patch)
tree41b8b7c894b3e6979c67d5b4363993cbaa2f1a7b /portato.py
parent6d862d7a961ce70bc24450aadc99a901e5ab19c8 (diff)
downloadportato-7afdc03507e0aa95f177f8a7c95086de5cfcc06c.tar.gz
portato-7afdc03507e0aa95f177f8a7c95086de5cfcc06c.tar.bz2
portato-7afdc03507e0aa95f177f8a7c95086de5cfcc06c.zip
bundled shm module
Diffstat (limited to '')
-rwxr-xr-xportato.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/portato.py b/portato.py
index 4019504..7cca894 100755
--- a/portato.py
+++ b/portato.py
@@ -23,7 +23,7 @@ try:
except ImportError:
from portato.shm import shm_wrapper as shm
-from portato import listener
+from portato import get_listener
from portato.constants import VERSION, FRONTENDS, STD_FRONTEND, XSD_LOCATION, LOCALE_DIR, APP, SU_COMMAND
def get_frontend_list ():
@@ -101,9 +101,9 @@ def main ():
elif options.nolistener or os.getuid() == 0: # start GUI
if options.shm:
- listener.set_send(*options.shm)
+ get_listener().set_send(*options.shm)
else:
- listener.set_send()
+ get_listener().set_send()
run()
@@ -125,7 +125,7 @@ def main ():
cmd = SU_COMMAND.split()
subprocess.Popen(cmd+["%s --no-listener --shm %ld %ld %ld %s" % (sys.argv[0], mem.key, sig.key, rw.key, " ".join(additional))], env = env, close_fds = False)
- listener.set_recv(mem, sig, rw)
+ get_listener().set_recv(mem, sig, rw)
if __name__ == "__main__":
main()