Blame SOURCES/evince-3.28.2-application-id.patch

67de2c
From 9363553a3087c7dbfa93e1d342283600ceb5993b Mon Sep 17 00:00:00 2001
67de2c
From: Marek Kasik <mkasik@redhat.com>
67de2c
Date: Fri, 22 Jun 2018 17:00:20 +0200
67de2c
Subject: shell: Set application-id
67de2c
67de2c
Set "application-id" property for evince's GApplication
67de2c
to "org.gnome.evince.Application".
67de2c
An assertion warning is shown in shell if it is not set.
67de2c
67de2c
Even though we use G_APPLICATION_NON_UNIQUE, the application
67de2c
ID is still required. See:
67de2c
https://bugzilla.gnome.org/show_bug.cgi?id=646985#c2
67de2c
67de2c
Closes: https://gitlab.gnome.org/GNOME/evince/issues/918
67de2c
67de2c
diff --git a/shell/ev-application.c b/shell/ev-application.c
67de2c
index 7d546933..f173d7a4 100644
67de2c
--- a/shell/ev-application.c
67de2c
+++ b/shell/ev-application.c
67de2c
@@ -65,6 +65,7 @@ struct _EvApplicationClass {
67de2c
 G_DEFINE_TYPE (EvApplication, ev_application, GTK_TYPE_APPLICATION)
67de2c
 
67de2c
 #ifdef ENABLE_DBUS
67de2c
+#define APPLICATION_DBUS_NAME        "org.gnome.evince.Application"
67de2c
 #define APPLICATION_DBUS_OBJECT_PATH "/org/gnome/evince/Evince"
67de2c
 #define APPLICATION_DBUS_INTERFACE   "org.gnome.evince.Application"
67de2c
 
67de2c
@@ -102,7 +103,7 @@ ev_application_new (void)
67de2c
   const GApplicationFlags flags = G_APPLICATION_NON_UNIQUE;
67de2c
 
67de2c
   return g_object_new (EV_TYPE_APPLICATION,
67de2c
-                       "application-id", NULL,
67de2c
+                       "application-id", APPLICATION_DBUS_NAME,
67de2c
                        "flags", flags,
67de2c
                        NULL);
67de2c
 }