Use DATADIR in the fallback for XDG_DATA_DIRS
This commit is contained in:
parent
7932d5e040
commit
88e5ed672c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user