File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2222
2323- Some signals weren't properly renamed from the previous GTK3 migration (@MightyCreak )
2424- The syntax menu wasn't working anymore (@MightyCreak )
25+ - Properly handles SIGINT (i.e. Ctrl+C) now (@MightyCreak )
2526
2627## 0.8.1 - 2023-04-07
2728
Original file line number Diff line number Diff line change 2222import os
2323import sys
2424import gettext
25+ import signal
2526
2627from gi.repository import Gio
2728
@@ -32,6 +33,10 @@ SYSCONFIGDIR = '@SYSCONFIGDIR@'
3233
3334sys.path.insert(1, PKGDATADIR)
3435
36+ # Quietly handle SIGINT (i.e. Ctrl+C)
37+ signal.signal(signal.SIGINT, signal.SIG_DFL)
38+
39+ # Initialize i18n
3540gettext.bindtextdomain('diffuse', localedir=LOCALEDIR)
3641gettext.textdomain('diffuse')
3742
You can’t perform that action at this time.
0 commit comments