import signal
import time
from gi.repository import GLib

# Without the line below, KeyboardInterrupt exceptions do
# happen when ctrl-c is pressed during the sleep.
loop = GLib.MainLoop()

print("Press ctrl-c")
time.sleep(60)
print("sleep finished")
