From c0af442909e1304b799a4b6c145f8444c752e3da Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sat, 20 Apr 2013 15:13:42 -0400 Subject: [PATCH] gdesktopappinfo: Allow getting the desktop ID from the filename --- gio/gdesktopappinfo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c index a76ecf3fa..faf9ac876 100644 --- a/gio/gdesktopappinfo.c +++ b/gio/gdesktopappinfo.c @@ -424,6 +424,8 @@ g_desktop_app_info_load_file (GDesktopAppInfo *self) g_return_val_if_fail (self->filename != NULL, FALSE); + self->desktop_id = g_path_get_basename (self->filename); + key_file = g_key_file_new (); if (g_key_file_load_from_file (key_file,