Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I found that when I run my application using "quickly run" and press Ctrl+c to kill it, the application does not quit. I am using Quickly 12.04.

For GTK2 applications, I used

def gtk_main_quit(self,widget,data=None):
    gtk.main_quit()

Is that enough to do it here with GTK3 ?

share|improve this question

2 Answers 2

Here's the bugreport describing your issue: https://bugzilla.gnome.org/show_bug.cgi?id=622084

share|improve this answer

I've found a way to make Ctrl+C work as excepted and quit the application. Insert this in your launcher script (PROJECT_ROOT/bin/yourapp)

import signal
# ... 
signal.signal(signal.SIGINT, signal.SIG_DFL)
# ... 
Gtk.main()

I've applied this method on my Python + Gtk3 project and haven't had any issue with it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.