From 4e3ad63274c00d7b874b8dee8e7c7c454c182c5c Mon Sep 17 00:00:00 2001 From: Dan Torop Date: Thu, 18 Dec 2025 22:16:08 -0500 Subject: [PATCH] ensure dt window icon is used on Plasma/Wayland We must set the program name to our desktop file. The icon comes from this file. Fixes #19946. --- src/common/darktable.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/darktable.c b/src/common/darktable.c index 9c80fe6f03a6..f3eee4e014a6 100644 --- a/src/common/darktable.c +++ b/src/common/darktable.c @@ -1473,6 +1473,10 @@ int dt_init(int argc, g_free(new_xdg_data_dirs); } + // desktop entry name required for mapping application icon to + // window for KDE/Plasma on Wayland under GTK 3 + g_set_prgname("org.darktable.darktable"); + setlocale(LC_ALL, ""); char localedir[PATH_MAX] = { 0 }; dt_loc_get_localedir(localedir, sizeof(localedir));