Skip to content

Commit

Permalink
gdesktopappinfo: Allow getting the desktop ID from the filename
Browse files Browse the repository at this point in the history
  • Loading branch information
magcius committed Apr 21, 2013
1 parent 390115f commit c0af442
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gio/gdesktopappinfo.c
Expand Up @@ -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,
Expand Down

0 comments on commit c0af442

Please sign in to comment.