mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
gdesktopappinfo: Allow getting the desktop ID from the filename
This commit is contained in:
parent
390115f385
commit
c0af442909
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user