Commit f6a310a4 authored by Cosimo Cecchi's avatar Cosimo Cecchi

application: don't call g_application_regisrer()

Calling it from the command-line implementation is an error, since we're
guaranteed to be in the primary instance alreaady.
parent 7daf923b
......@@ -790,7 +790,6 @@ nautilus_application_command_line (GApplication *application,
NautilusApplication *self = NAUTILUS_APPLICATION (application);
gint retval = -1;
GVariantDict *options;
GError *error = NULL;
nautilus_profile_start (NULL);
......@@ -813,19 +812,6 @@ nautilus_application_command_line (GApplication *application,
goto out;
}
g_application_register (application, NULL, &error);
if (error != NULL) {
/* Translators: this is a fatal error quit message printed on the
* command line */
g_application_command_line_printerr (command_line,
"%s: %s\n", _("Could not register the application"), error->message);
g_error_free (error);
retval = EXIT_FAILURE;
goto out;
}
if (g_variant_dict_contains (options, "quit")) {
DEBUG ("Killing application, as requested");
g_action_group_activate_action (G_ACTION_GROUP (application),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment