menu: partial fix for duplicates on FreeBSD
This commit is contained in:
parent
3b034e80a8
commit
f96bc13e50
|
@ -419,7 +419,10 @@ static void _menu_xdg_dirs(Menu * menu, void (*callback)(Menu * menu,
|
||||||
/* read through every XDG application folder */
|
/* read through every XDG application folder */
|
||||||
if((path = getenv("XDG_DATA_DIRS")) == NULL || strlen(path) == 0)
|
if((path = getenv("XDG_DATA_DIRS")) == NULL || strlen(path) == 0)
|
||||||
{
|
{
|
||||||
#if defined(__NetBSD__)
|
#if defined(__FreeBSD__)
|
||||||
|
/* XXX really detect if DATADIR is already included */
|
||||||
|
path = DATADIR ":/usr/share";
|
||||||
|
#elif defined(__NetBSD__)
|
||||||
/* XXX include the default path for pkgsrc */
|
/* XXX include the default path for pkgsrc */
|
||||||
path = "/usr/pkg/share:" DATADIR ":/usr/share";
|
path = "/usr/pkg/share:" DATADIR ":/usr/share";
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user