[Pkg-privacy-commits] [torbrowser-launcher] 23/39: Allow ctrl-c to work again (see https://stackoverflow.com/questions/5160577/ctrl-c-doesnt-work-with-pyqt)
Roger Shimizu
rosh at debian.org
Tue Mar 27 15:41:52 UTC 2018
This is an automated email from the git hooks/post-receive script.
rosh pushed a commit to branch rosh/experimental
in repository torbrowser-launcher.
commit 45e6c01628e249d89cd9e575e96a533b073ad4e7
Author: Micah Lee <micah at micahflee.com>
Date: Fri Mar 23 13:40:44 2018 -0700
Allow ctrl-c to work again (see https://stackoverflow.com/questions/5160577/ctrl-c-doesnt-work-with-pyqt)
---
torbrowser_launcher/__init__.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/torbrowser_launcher/__init__.py b/torbrowser_launcher/__init__.py
index b507da0..d6ca5d6 100644
--- a/torbrowser_launcher/__init__.py
+++ b/torbrowser_launcher/__init__.py
@@ -29,6 +29,7 @@ OTHER DEALINGS IN THE SOFTWARE.
import os
import sys
import argparse
+import signal
from PyQt5 import QtCore, QtWidgets
@@ -77,6 +78,9 @@ def main():
# Launcher mode
Launcher(common, app, url_list)
+ # Allow ctrl-c to work
+ signal.signal(signal.SIGINT, signal.SIG_DFL)
+
sys.exit(app.exec_())
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/torbrowser-launcher.git
More information about the Pkg-privacy-commits
mailing list