summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/frontend_app.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/bitmask/frontend_app.py')
-rw-r--r--src/leap/bitmask/frontend_app.py22
1 files changed, 5 insertions, 17 deletions
diff --git a/src/leap/bitmask/frontend_app.py b/src/leap/bitmask/frontend_app.py
index 12703518..60f20e3c 100644
--- a/src/leap/bitmask/frontend_app.py
+++ b/src/leap/bitmask/frontend_app.py
@@ -18,8 +18,6 @@ import signal
import sys
import os
-from functools import partial
-
from PySide import QtCore, QtGui
from leap.bitmask.config import flags
@@ -41,18 +39,6 @@ def sigint_handler(*args, **kwargs):
mainwindow.quit()
-def sigterm_handler(*args, **kwargs):
- """
- Signal handler for SIGTERM.
- This handler is actually passed to twisted reactor
- """
- logger = kwargs.get('logger', None)
- if logger:
- logger.debug("SIGTERM catched. shutting down...")
- mainwindow = args[0]
- mainwindow.quit()
-
-
def run_frontend(options):
"""
Run the GUI for the application.
@@ -88,10 +74,12 @@ def run_frontend(options):
qApp.setApplicationName("leap")
qApp.setOrganizationDomain("leap.se")
- window = MainWindow(start_hidden=start_hidden)
+ MainWindow(start_hidden=start_hidden)
- sigint_window = partial(sigint_handler, window, logger=logger)
- signal.signal(signal.SIGINT, sigint_window)
+ # sigint_window = partial(sigint_handler, window, logger=logger)
+ # signal.signal(signal.SIGINT, sigint_window)
+ # Ensure that the application quits using CTRL-C
+ signal.signal(signal.SIGINT, signal.SIG_DFL)
sys.exit(qApp.exec_())