fixed ctrl-c behavior

This commit is contained in:
Martin Wagner 2022-04-16 22:02:18 +02:00
parent d07ca0697d
commit 6198a821db

View File

@ -32,6 +32,7 @@ import datetime
import collections import collections
import os import os
import sys import sys
import signal
import re import re
import locale import locale
from gettext import gettext as _, ngettext, textdomain, bindtextdomain from gettext import gettext as _, ngettext, textdomain, bindtextdomain
@ -3846,4 +3847,5 @@ class mpdevil(Gtk.Application):
if __name__ == "__main__": if __name__ == "__main__":
app=mpdevil() app=mpdevil()
signal.signal(signal.SIGINT, signal.SIG_DFL) # allow using ctrl-c to terminate
app.run(sys.argv) app.run(sys.argv)