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

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