[nautilus] application: don't call g_application_regisrer()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] application: don't call g_application_regisrer()
- Date: Sun, 24 May 2015 19:21:58 +0000 (UTC)
commit f6a310a42a24fd87c72fc55bf435587ba0acaee5
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat May 23 18:20:23 2015 -0700
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.
src/nautilus-application.c | 14 --------------
1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 6948a13..57e7d84 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -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),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]