g_critical can be fatal (with --g-fatal-warnings, or some env var set),
so don't use it to print out runtime errors.
Bug #676761.
if (!g_application_register (application, NULL, &error))
{
- g_critical ("%s", error->message);
+ g_printerr ("Failed to register: %s\n", error->message);
g_error_free (error);
*exit_status = 1;
return TRUE;
if (!g_application_register (application, NULL, &error))
{
- g_printerr ("%s", error->message);
+ g_printerr ("Failed to register: %s\n", error->message);
g_error_free (error);
return 1;
}