Blame SOURCES/vinagre-3-22.0-allow-multiple-windows.patch

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