chromium: Suffix instead of prefix ${xdg-utils}/bin to $PATH

This is important so that users can choose to use other implementations
(e.g., self-written Bash scripts).
We only provide xdg-utils as a fallback in case the system isn't
properly configured.
This commit is contained in:
Michael Weiss 2022-02-26 12:45:52 +01:00
parent 426a50f0f8
commit 37a19c55df
No known key found for this signature in database
GPG Key ID: 5BE487C4D4771D83

View File

@ -207,8 +207,8 @@ in stdenv.mkDerivation {
export XDG_DATA_DIRS=$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH\''${XDG_DATA_DIRS:+:}\$XDG_DATA_DIRS
# Mainly for xdg-open but also other xdg-* tools:
export PATH="${xdg-utils}/bin\''${PATH:+:}\$PATH"
# Mainly for xdg-open but also other xdg-* tools (this is only a fallback; \$PATH is suffixed so that other implementations can be used):
export PATH="\$PATH\''${PATH:+:}${xdg-utils}/bin"
.
w