app: set a specific desktop filename to fix wayland window icon

Set a specific desktop filename to fix window icon under Wayland.

Closes: #13183
This commit is contained in:
Integral 2025-05-10 14:48:35 +08:00 committed by Jehan
parent 672703eb60
commit 95e32ebb34
3 changed files with 6 additions and 5 deletions

View file

@ -544,7 +544,6 @@ main (int argc,
GOptionContext *context;
GError *error = NULL;
const gchar *abort_message;
gchar *basename;
GFile *system_gimprc_file = NULL;
GFile *user_gimprc_file = NULL;
GOptionGroup *gimp_group = NULL;
@ -674,9 +673,7 @@ main (int argc,
argv = g_strdupv (argv);
#endif
basename = g_path_get_basename (argv[0]);
g_set_prgname (basename);
g_free (basename);
g_set_prgname (GIMP_DESKTOP_NAME);
/* Check argv[] for "--verbose" first */
for (i = 1; i < argc; i++)