tint2conf: Do not load desktop files marked as NoDisplay

This commit is contained in:
o9000
2016-02-28 15:50:32 +01:00
parent 1000cbf491
commit 734af1c025
3 changed files with 13 additions and 4 deletions

View File

@@ -2367,6 +2367,10 @@ void load_desktop_entry(const char *file, GList **entries)
DesktopEntry *entry = calloc(1, sizeof(DesktopEntry));
if (!read_desktop_file(file, entry))
printf("Could not load %s\n", file);
if (entry->hidden_from_menus) {
free(entry);
return;
}
if (!entry->name)
entry->name = strdup(file);
if (!entry->icon)