Search code examples
gtkmm

Run multiple instances of gtkmm applications under linux


I'm working on a c++ project that uses gtkmm libraries, each application is assigned an application ID during startup, this is required by Gtk::Application.

because of that I'm not able to run second instance.

How can I achieve the goal to run more instances?


Solution

  • You have to pass the APPLICATION_NON_UNIQUE value from ApplicationFlags using the set_flags() method of your application.