[gnome-photos] main: Make the WM_CLASS match the application ID
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] main: Make the WM_CLASS match the application ID
- Date: Fri, 5 Jan 2018 19:14:28 +0000 (UTC)
commit c737e7a32607d194cc2c82317a9b5860a7e332b0
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Jan 5 20:04:30 2018 +0100
main: Make the WM_CLASS match the application ID
The application ID and the window's WM_CLASS are used by GNOME Shell to
retrieve the application icon from the desktop file. This isn't a
problem at the moment because the application ID matches the name of
the desktop file, and that's good enough for GNOME Shell. However,
it's good to have the WM_CLASS match it too to help other environments
that might have a subtly different logic to retrieve the icon.
src/photos-main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/photos-main.c b/src/photos-main.c
index 30e97e73..ebcd4327 100644
--- a/src/photos-main.c
+++ b/src/photos-main.c
@@ -55,7 +55,7 @@ main (gint argc, gchar *argv[])
photos_debug_init ();
- g_set_prgname (PACKAGE_TARNAME);
+ g_set_prgname ("org.gnome.Photos");
app = photos_application_new ();
if (g_getenv ("GNOME_PHOTOS_PERSIST") != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]