gdesktopappinfo: Allow getting the desktop ID from the filename

This commit is contained in:
Jasper St. Pierre 2013-04-20 15:13:42 -04:00
parent 390115f385
commit c0af442909

View File

@ -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,