From 537a208c2551cda183a4ebaf179e8f0c2622ab5c Mon Sep 17 00:00:00 2001 From: Frank Morgner Date: Tue, 24 Apr 2018 09:50:04 +0200 Subject: [PATCH] Use non unique flag for App ID When loaded as PKCS#11 module, OpenSC will reuse the application identifier for each instance. We don't want to put any burdon on the primary GApplication, so we use a non unique ID. fixes https://github.com/OpenSC/OpenSC/issues/1332 --- src/ui/notify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/notify.c b/src/ui/notify.c index e08722bf..d66e3aff 100644 --- a/src/ui/notify.c +++ b/src/ui/notify.c @@ -380,7 +380,7 @@ static GApplication *application = NULL; void sc_notify_init(void) { sc_notify_close(); - application = g_application_new("org.opensc.notify", G_APPLICATION_FLAGS_NONE); + application = g_application_new("org.opensc.notify", G_APPLICATION_NON_UNIQUE); if (application) { g_application_register(application, NULL, NULL); }