From f96bc13e5058e6d70a7c091f1b7e4c0346e8374a Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 4 Nov 2023 23:30:18 +0100 Subject: [PATCH] menu: partial fix for duplicates on FreeBSD --- src/applets/menu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/applets/menu.c b/src/applets/menu.c index 80b8852..fa4f05a 100644 --- a/src/applets/menu.c +++ b/src/applets/menu.c @@ -419,7 +419,10 @@ 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) { -#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 */ path = "/usr/pkg/share:" DATADIR ":/usr/share"; #else