diff --git a/src/beelib.config.sh.in b/src/beelib.config.sh.in index 7db42c3..bca4fcb 100644 --- a/src/beelib.config.sh.in +++ b/src/beelib.config.sh.in @@ -45,6 +45,10 @@ function config_init_base_config() { # append bee installed defaults to config search path : ${BEE_CONFIG_DIR:=${BEE_DEFCONFDIR}} XDG_CONFIG_DIRS=${XDG_CONFIG_DIRS}:${BEE_CONFIG_DIR} + + # remove dupes from pathes + XDG_CONFIG_DIRS=$(beeuniq -d : ${XDG_CONFIG_DIRS//:/ }) + XDG_DATA_DIRS=$(beeuniq -d : ${XDG_DATA_DIRS//:/ }) } function config_handle_deprecated_config() {