Blame SOURCES/vinagre-3.22.0-multiple-app-instances.patch

ebcc67
From 154c8d5bbdc8a002116262690ef43e810a5eb7eb Mon Sep 17 00:00:00 2001
ebcc67
From: Felipe Borges <felipeborges@gnome.org>
ebcc67
Date: Mon, 8 Aug 2016 16:14:06 +0200
ebcc67
Subject: [PATCH] Allow the launch of multiple application instances
ebcc67
ebcc67
We advertize the --new-window application option but since the
ebcc67
port to GtkApplication we are requesting for a unique application
ebcc67
ID, which prevents the launch of new instances.
ebcc67
ebcc67
The G_APPLICATION_NON_UNIQUE gapplication flag allows the launching
ebcc67
of new vinagre instances by not attempting to do any of the typical
ebcc67
single-instance application negotiation, even if the application
ebcc67
ID is given. The application neither attempts to become the owner
ebcc67
of the application ID nor does it check if an existing owner already
ebcc67
exists. Everything occurs in the local process.
ebcc67
ebcc67
https://bugzilla.gnome.org/show_bug.cgi?id=769631
ebcc67
---
ebcc67
 vinagre/vinagre-main.c | 2 +-
ebcc67
 1 file changed, 1 insertion(+), 1 deletion(-)
ebcc67
ebcc67
diff --git a/vinagre/vinagre-main.c b/vinagre/vinagre-main.c
ebcc67
index 9e66b72..91eba77 100644
ebcc67
--- a/vinagre/vinagre-main.c
ebcc67
+++ b/vinagre/vinagre-main.c
ebcc67
@@ -182,7 +182,7 @@ int main (int argc, char **argv) {
ebcc67
   g_set_application_name (_("Remote Desktop Viewer"));
ebcc67
   optionstate.new_window = FALSE;
ebcc67
 
ebcc67
-  app = gtk_application_new ("org.gnome.vinagre", G_APPLICATION_HANDLES_COMMAND_LINE);
ebcc67
+  app = gtk_application_new ("org.gnome.vinagre", G_APPLICATION_HANDLES_COMMAND_LINE | G_APPLICATION_NON_UNIQUE);
ebcc67
   /* https://bugzilla.gnome.org/show_bug.cgi?id=634990 */
ebcc67
   /* g_application_set_option_context (G_APPLICATION (app), context); */
ebcc67
   g_signal_connect (app,
ebcc67
-- 
ebcc67
2.7.4