Use DATADIR in the fallback for XDG_DATA_DIRS

This commit is contained in:
Pierre Pronchery 2017-12-28 07:05:02 +01:00
parent 7932d5e040
commit 88e5ed672c

View File

@ -2916,8 +2916,7 @@ static void _refresh_loop_categories_xdg(Desktop * desktop,
size_t j;
if((path = getenv("XDG_DATA_DIRS")) == NULL || strlen(path) == 0)
/* FIXME use DATADIR */
path = "/usr/local/share:/usr/share";
path = "/usr/local/share:" DATADIR ":/usr/share";
if((p = strdup(path)) == NULL)
{
_desktop_perror(NULL, NULL, 1);