Use DATADIR in the fallback for XDG_DATA_DIRS

This commit is contained in:
Pierre Pronchery 2017-12-28 07:08:36 +01:00
parent 3c13036d96
commit 6862268ff5

View File

@ -413,7 +413,7 @@ static void _menu_xdg_dirs(Menu * menu, void (*callback)(Menu * menu,
/* read through every XDG application folder */
if((path = getenv("XDG_DATA_DIRS")) == NULL || strlen(path) == 0)
{
path = "/usr/local/share:/usr/share";
path = "/usr/local/share:" DATADIR ":/usr/share";
datadir = 0;
}
if((p = strdup(path)) == NULL)