Merge pull request #11221 from jduchateau/patch-1

data/env: treat XDG_DATA_DIRS like PATH for fish
This commit is contained in:
Michael Vogt
2022-01-11 09:10:29 +01:00
committed by GitHub

View File

@@ -6,6 +6,7 @@ fish_add_path -aP $snap_bin_path
# looked for in XDG_DATA_DIRS; make sure it includes the relevant directory for
# snappy applications' desktop files.
set -u snap_xdg_path /var/lib/snapd/desktop
set --path XDG_DATA_DIRS $XDG_DATA_DIRS
if ! contains $snap_xdg_path $XDG_DATA_DIRS
set XDG_DATA_DIRS $XDG_DATA_DIRS $snap_xdg_path
end