diff --git a/conf.d/xdg-data-dirs.fish b/conf.d/xdg-data-dirs.fish index af26f31..63a5d06 100644 --- a/conf.d/xdg-data-dirs.fish +++ b/conf.d/xdg-data-dirs.fish @@ -1 +1,5 @@ -test -x $HOME/.local/bin/update-xdg-data-dirs.py; and set -gx XDG_DATA_DIRS ($HOME/.local/bin/update-xdg-data-dirs.py) +set uxdd (command -v update-xdg-data-dirs.py) + +if test -n "$uxdd" -a -x "$uxdd" + set -gx XDG_DATA_DIRS (uxdd) +end