summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
Diffstat (limited to 'portato')
-rw-r--r--portato/gui/__init__.py19
-rw-r--r--portato/plistener.py5
2 files changed, 13 insertions, 11 deletions
diff --git a/portato/gui/__init__.py b/portato/gui/__init__.py
index 20bcba6..0df890c 100644
--- a/portato/gui/__init__.py
+++ b/portato/gui/__init__.py
@@ -17,15 +17,12 @@ from .exception_handling import register_ex_handler
def run ():
from .windows.splash import SplashScreen
- try:
- s = SplashScreen(_("Loading Backend"))
- register_ex_handler()
- s.show()
- from .windows.main import MainWindow
- m = MainWindow(s)
- s.hide()
- m.main()
- except KeyboardInterrupt:
- pass
+ s = SplashScreen(_("Loading Backend"))
- get_listener().close()
+ register_ex_handler()
+ s.show()
+
+ from .windows.main import MainWindow
+ m = MainWindow(s)
+ s.hide()
+ m.main()
diff --git a/portato/plistener.py b/portato/plistener.py
index a45a17e..fde54fc 100644
--- a/portato/plistener.py
+++ b/portato/plistener.py
@@ -48,6 +48,7 @@ class PListener (object):
self._rw.V()
data = string.split("\0")
+ debug("Listner received: %s", data)
if data[0] == "notify":
self.do_notify(*data[1:])
@@ -63,6 +64,10 @@ class PListener (object):
self._sig.remove()
self._rw.remove()
+ self._mem = None
+ self._sig = None
+ self._rw = None
+
def do_cmd (self, cmdlist):
"""Starts a command as the user.