When I build a gtkmm application that uses (loads) .glade file with Gtk::Builder, and then double clicking on the application (in file explorer) it won't show the UI, how ever when launching the same application from the shell is runs just fine and shows the interface.
also I tried to crate the exactly same app without support of glade and it runs just fine when double clicking the app in file explorer (it shows UI).
Is there any trick when building apps with glade or what do I need to do?
snapshot of main.cpp
int main(int argc, char *argv[])
{
Glib::RefPtr<Gtk::Application> app = Gtk::Application::create(argc, argv, "freme.ccp");
Glib::RefPtr<Gtk::Builder> pBuilder = Gtk::Builder::create_from_file("frame.glade");
frame* pFrame = nullptr;
pBuilder->get_widget_derived("AppWindow", pFrame);
app->run(*pFrame);
delete pFrame;
return 0;
}
the frame.glade file is in the same directory as sources and output application.