diff --git a/libmenu/gmenu-desktopappinfo.c b/libmenu/gmenu-desktopappinfo.c index 737b387..5d794d6 100644 --- a/libmenu/gmenu-desktopappinfo.c +++ b/libmenu/gmenu-desktopappinfo.c @@ -36,9 +36,9 @@ static void update_app_data (GMenuDesktopAppInfo *info) { - const gchar *exec; - const gchar *id; - const gchar *startup_wm_class; + gchar *exec = NULL; + gchar *id = NULL; + gchar *startup_wm_class = NULL; g_free (info->desktop_id); info->desktop_id = NULL; @@ -51,11 +51,11 @@ if (info->super_appinfo != NULL) { - exec = g_app_info_get_executable (G_APP_INFO (info->super_appinfo)); - id = g_app_info_get_id (G_APP_INFO (info->super_appinfo)); - startup_wm_class = g_desktop_app_info_get_startup_wm_class (info->super_appinfo); - - if (strstr (exec, "flatpak") || strstr (exec, "bwrap")) + exec = (gchar *) g_app_info_get_executable (G_APP_INFO (info->super_appinfo)); + id = (gchar *) g_app_info_get_id (G_APP_INFO (info->super_appinfo)); + startup_wm_class = (gchar *) g_desktop_app_info_get_startup_wm_class (info->super_appinfo); + + if (exec && (strstr (exec, "flatpak") || strstr (exec, "bwrap"))) { info->desktop_id = g_strconcat (id, GMENU_DESKTOPAPPINFO_FLATPAK_SUFFIX, NULL); if (startup_wm_class) diff --git a/meson.build b/meson.build index 93df5aa..542d156 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,4 @@ -project('cinnamon-menus', 'c', version : '4.8.0', meson_version: '>=0.40.0') +project('cinnamon-menus', 'c', version : '4.8.1', meson_version: '>=0.40.0') gnome = import('gnome')