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
This commit is contained in:
Frank Morgner 2018-04-24 09:50:04 +02:00
parent 099270092a
commit 537a208c25
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}