mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-22 07:35:25 -04:00
profile: Don't add flatpak to XDG_DATA_DIRS if its already there
This commit is contained in:
1 parent
5bb3c05e14
commit
f09d6b3aa6
1 file changed
+1
-1
@@ -4,7 +4,7 @@ flatpak_dirs=$HOME/.local/share/flatpak/exports/share/:@localstatedir@/lib/flatp
|
||||
|
||||
if [ -z "${XDG_DATA_DIRS}" ]; then
|
||||
XDG_DATA_DIRS="$flatpak_dirs:/usr/local/share/:/usr/share/"
|
||||
else
|
||||
elif [ "${XDG_DATA_DIRS#*flatpak}" == ${XDG_DATA_DIRS} ]; then
|
||||
XDG_DATA_DIRS="$XDG_DATA_DIRS:$flatpak_dirs"
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user