Codebase list cinnamon-menus / 763faf1
gmenu-tree.c: Return a basename if no appinfo is available when sorting. This is a workaround: if a desktop file is edited and becomes invalid, the tree rebuilds and re-loading that file initially fails and gets added to our "retry later" list (see b5495c4176e). The problem is, mimeinfo never updates in this case, and we end up with basically an invalid desktop entry with no appinfo. This is mainly to silence a lot of runtime warnings because the sorting fails. Michael Webster 3 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
17781778 break;
17791779
17801780 case GMENU_TREE_ITEM_ENTRY:
1781 if (gmenu_tree_entry_get_app_info (GMENU_TREE_ENTRY (item)) == NULL)
1782 {
1783 return desktop_entry_get_basename (GMENU_TREE_ENTRY (item)->desktop_entry);
1784 }
1785
17811786 if (flags & GMENU_TREE_FLAGS_SORT_DISPLAY_NAME)
17821787 name = g_app_info_get_display_name (G_APP_INFO (gmenu_tree_entry_get_app_info (GMENU_TREE_ENTRY (item))));
17831788 else