[gnome-terminal] server.c: don't call g_application_register()
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] server.c: don't call g_application_register()
- Date: Sun, 22 Feb 2015 18:51:19 +0000 (UTC)
commit 7a8c4dcfdd41b54a6fde44c3736e8e9822c63320
Author: Lars Uebernickel <lars uebernickel canonical com>
Date: Wed Feb 4 11:55:21 2015 +0100
server.c: don't call g_application_register()
g_application_run() will call it anyway and return with the same error
when an instance already exists.
https://bugzilla.gnome.org/show_bug.cgi?id=685742
src/server.c | 13 -------------
1 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/src/server.c b/src/server.c
index ee21633..96d1374 100644
--- a/src/server.c
+++ b/src/server.c
@@ -170,21 +170,8 @@ main (int argc, char **argv)
app = terminal_app_new (app_id);
g_free (app_id);
- if (!g_application_register (app, NULL, &error)) {
- g_printerr ("Failed to register application: %s\n", error->message);
- g_error_free (error);
- goto out;
- }
-
- if (g_application_get_is_remote (app)) {
- /* How the fuck did this happen? */
- g_printerr ("Cannot be remote instance!\n");
- goto out;
- }
-
exit_code = g_application_run (app, 0, NULL);
-out:
g_object_unref (app);
return exit_code;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]