To open an application by clicking an associated file like
grid.sps in the Finder on Macos requires that the property
"register-session" is set for gtk_application. I did not
find a negative impact on Debian bullseye so I hope this
works also on other platforms. The gtk support for this
will be in the next gtk-3-24 release.
See: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2098
g_action_map_add_action (G_ACTION_MAP (app), G_ACTION (act_new_data));
}
+ g_object_set (G_OBJECT (app), "register-session", TRUE, NULL);
return g_application_run (G_APPLICATION (app), argc, argv);
}