#!/usr/bin/env python3

import signal
import gi
from gi.repository import GObject

def signal_handler(signum, frame):
    loop.quit()

signal.signal(signal.SIGINT, signal_handler)

global loop
# doesn't work either anymore?
#loop = GObject.MainLoop(None, False)
loop = GObject.MainLoop(None)

loop.run()

