Blame SOURCES/fonts-tweak-tool-sigint.patch
|
|
228485 |
From f3a1f55c594a06503c27c8a7e9f6c11308bf1053 Mon Sep 17 00:00:00 2001
|
|
|
228485 |
From: Akira TAGOH <akira@tagoh.org>
|
|
|
228485 |
Date: Thu, 12 Dec 2013 20:20:28 +0900
|
|
|
228485 |
Subject: [PATCH] Workaround to terminate with SIGINT
|
|
|
228485 |
|
|
|
228485 |
---
|
|
|
228485 |
fonts-tweak-tool | 2 ++
|
|
|
228485 |
1 file changed, 2 insertions(+)
|
|
|
228485 |
|
|
|
228485 |
diff --git a/fonts-tweak-tool b/fonts-tweak-tool
|
|
|
228485 |
index 6e8c5e3..60ede69 100755
|
|
|
228485 |
--- a/fonts-tweak-tool
|
|
|
228485 |
+++ b/fonts-tweak-tool
|
|
|
228485 |
@@ -24,6 +24,7 @@ import gettext
|
|
|
228485 |
import gi
|
|
|
228485 |
import locale
|
|
|
228485 |
import os
|
|
|
228485 |
+import signal
|
|
|
228485 |
from fontstweak.fontstweak import FontsTweakConst
|
|
|
228485 |
from fontstweak.util import FontsTweakUtil
|
|
|
228485 |
from fontstweak.aliasui import FontsTweakAliasUI
|
|
|
228485 |
@@ -45,6 +46,7 @@ except Locale.Error as e:
|
|
|
228485 |
os.environ['LC_ALL'] = 'C'
|
|
|
228485 |
locale.setlocale(locale.LC_ALL, '')
|
|
|
228485 |
|
|
|
228485 |
+signal.signal(signal.SIGINT, signal.SIG_DFL)
|
|
|
228485 |
gettext.bind_textdomain_codeset(FontsTweakConst.GETTEXT_PACKAGE, locale.nl_langinfo(locale.CODESET))
|
|
|
228485 |
gettext.bindtextdomain(FontsTweakConst.GETTEXT_PACKAGE, FontsTweakConst.LOCALEDIR)
|
|
|
228485 |
gettext.textdomain(FontsTweakConst.GETTEXT_PACKAGE)
|
|
|
228485 |
--
|
|
|
228485 |
1.8.4.2
|
|
|
228485 |
|