GTKmm 3: Parse command line with Gtk::Application
问题 I'm trying to use GTK's argv-handling, but there seem to be some issues with the main loop. My goal is to parse the command line after GTK removed its options (like --display ), but before opening a window, because I want my app to be usable with a CLI-only interface, too, with both variants making use of Glib etc. This is why I'm trying to open the window in the command_line signal handler. This works as expected, exits when the window is closed. #include <gtkmm.h> int main(int argc, char *