summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Kukkonen <jussi.kukkonen@intel.com>2013-05-03 16:16:33 +0300
committerJussi Kukkonen <jussi.kukkonen@intel.com>2013-05-03 16:37:06 +0300
commit48817907c3aaf3f39d09909560d3c02878cf1c89 (patch)
treef3018feedf9dcf095b1b0f96e0d95c97a972f28f
parenta2c3a2df45aa5a2a0465a61093807f58b3a9d598 (diff)
downloaddleyna-control-48817907c3aaf3f39d09909560d3c02878cf1c89.tar.gz
[main] Connect SIGINT to default handler
The GTK main thread won't handle keyboard interrupt by default: https://bugzilla.gnome.org/show_bug.cgi?id=622084 Bind SIGINT to SIG_DFL manually so ctrl-c works. Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
-rwxr-xr-xsrc/dleyna-control.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dleyna-control.py b/src/dleyna-control.py
index 9b5c4f0..7eab833 100755
--- a/src/dleyna-control.py
+++ b/src/dleyna-control.py
@@ -27,10 +27,13 @@ from gi.repository import GObject, Gtk, Gst
import dbus
import dbus.service
import dbus.mainloop.glib
+import signal
from msd.msd_main_window import *
if __name__ == "__main__":
+ signal.signal(signal.SIGINT, signal.SIG_DFL)
+
GObject.threads_init()
Gst.init(None)
try: