From 37a19c55df912a111d10f4b78367ad906db031b0 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Sat, 26 Feb 2022 12:45:52 +0100 Subject: [PATCH] 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. --- pkgs/applications/networking/browsers/chromium/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/browsers/chromium/default.nix b/pkgs/applications/networking/browsers/chromium/default.nix index b3738ed8c1dd..53762744504e 100644 --- a/pkgs/applications/networking/browsers/chromium/default.nix +++ b/pkgs/applications/networking/browsers/chromium/default.nix @@ -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