App exits with extra param - bug or feature?
- From: Фамилия Имя <kangaba yandex ru>
- To: gtkmm-list gnome org
- Subject: App exits with extra param - bug or feature?
- Date: Fri, 12 Oct 2012 22:40:32 +0300
Hi,
If I add the param "Gio::APPLICATION_HANDLES_COMMAND_LINE" to Gtk::Application it exits automatically.
Is it a bug or feature?
Simple sample:
#include <gtkmm.h>
int
main(int argc, char *argv[]) {
Glib::RefPtr<Gtk::Application> app = Gtk::Application::create(argc, argv,
"org.app.com");//, Gio::APPLICATION_HANDLES_COMMAND_LINE);
Gtk::Window win;
win.show_all();
app->run(win);
return 0;
}
It compiles and runs fine, however if you add/uncomment the Gio::APPLICATION_HANDLES_COMMAND_LINE param
to the app it will compile fine but the executable execute past app->run(win) and just exit.
It happens on Ubuntu 12.10 amd64 which ships with libgtkmm-3.0-dev version 3.5.13-0ubuntu1
On Ubuntu 12.04 I don't have this subtle issue, however it complains if I don't add this param yet access the param list later on.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]