From 802a4bda50ac19765d2556ca8f5b84020f54c733 Mon Sep 17 00:00:00 2001 From: wdlkmpx Date: Mon, 22 Feb 2021 15:07:05 +0800 Subject: [PATCH] main.c (gtk3.4+): G_APPLICATION_NON_UNIQUE --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index e2fc740..a6f906e 100644 --- a/src/main.c +++ b/src/main.c @@ -761,7 +761,7 @@ int main(int argc, char **argv) // Handling cmd line args with GApplication is a nightmare // follow this: https://developer.gnome.org/gtkmm-tutorial/stable/sec-multi-item-containers.html.en#boxes-command-line-options argc = 1; /* hide args from GApplication */ - gmrun_app = gtk_application_new ("org.gtk.gmrun", G_APPLICATION_FLAGS_NONE); + gmrun_app = gtk_application_new ("org.gtk.gmrun", G_APPLICATION_NON_UNIQUE); g_signal_connect (gmrun_app, "activate", gmrun_activate, NULL); status = g_application_run (G_APPLICATION (gmrun_app), argc, argv); g_object_unref (gmrun_app);