Use XDG paths in addition to the defaults when looking for icons and applications

This commit is contained in:
o9000
2016-02-28 14:53:15 +01:00
parent edbf9f4437
commit fcbc006e43
6 changed files with 95 additions and 13 deletions

View File

@@ -7,6 +7,8 @@
#ifndef APPS_COMMON_H
#define APPS_COMMON_H
#include <glib.h>
typedef struct DesktopEntry {
char *name;
char *exec;
@@ -27,4 +29,8 @@ int read_desktop_file(const char *path, DesktopEntry *entry);
// Empties DesktopEntry: releases the memory of the *members* of entry.
void free_desktop_entry(DesktopEntry *entry);
// Returns a list of the directories used to store desktop files.
// Do not free the result, it is cached.
const GSList *get_apps_locations();
#endif