Update upstream source from tag 'upstream/4.8.1'
Update to upstream version '4.8.1'
with Debian dir b83473a2bede71785f8ec2abc23289407b22edd1
Norbert Preining
2 years ago
35 | 35 | static void |
36 | 36 | update_app_data (GMenuDesktopAppInfo *info) |
37 | 37 | { |
38 | const gchar *exec; | |
39 | const gchar *id; | |
40 | const gchar *startup_wm_class; | |
38 | gchar *exec = NULL; | |
39 | gchar *id = NULL; | |
40 | gchar *startup_wm_class = NULL; | |
41 | 41 | |
42 | 42 | g_free (info->desktop_id); |
43 | 43 | info->desktop_id = NULL; |
50 | 50 | |
51 | 51 | if (info->super_appinfo != NULL) |
52 | 52 | { |
53 | exec = g_app_info_get_executable (G_APP_INFO (info->super_appinfo)); | |
54 | id = g_app_info_get_id (G_APP_INFO (info->super_appinfo)); | |
55 | startup_wm_class = g_desktop_app_info_get_startup_wm_class (info->super_appinfo); | |
56 | ||
57 | if (strstr (exec, "flatpak") || strstr (exec, "bwrap")) | |
53 | exec = (gchar *) g_app_info_get_executable (G_APP_INFO (info->super_appinfo)); | |
54 | id = (gchar *) g_app_info_get_id (G_APP_INFO (info->super_appinfo)); | |
55 | startup_wm_class = (gchar *) g_desktop_app_info_get_startup_wm_class (info->super_appinfo); | |
56 | ||
57 | if (exec && (strstr (exec, "flatpak") || strstr (exec, "bwrap"))) | |
58 | 58 | { |
59 | 59 | info->desktop_id = g_strconcat (id, GMENU_DESKTOPAPPINFO_FLATPAK_SUFFIX, NULL); |
60 | 60 | if (startup_wm_class) |