diff options
author | Michael Weiss <dev.primeos@gmail.com> | 2020-09-06 23:20:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-06 23:20:30 +0200 |
commit | 1fa610bdf089891d18efbfdd2d6c6b5b3b62a384 (patch) | |
tree | cf7770cf2f59f7994458b19812f05a769a4551bc /pkgs/applications/networking/browsers | |
parent | 60f27064aaa6b2c1257447ac3f80bf6830ab61a8 (diff) |
chromium: Prefix $PATH with xdg_utils (#96922)
This is required for certain URIs that require launching external programs (e.g. mailto:, magnet:, or irc:) or setting the default browser via xdg-settings. Fix #96897 and fix #92751.
Diffstat (limited to 'pkgs/applications/networking/browsers')
-rw-r--r-- | pkgs/applications/networking/browsers/chromium/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/applications/networking/browsers/chromium/default.nix b/pkgs/applications/networking/browsers/chromium/default.nix index b04c3cce77647..1c811acd2547a 100644 --- a/pkgs/applications/networking/browsers/chromium/default.nix +++ b/pkgs/applications/networking/browsers/chromium/default.nix @@ -1,5 +1,5 @@ { newScope, config, stdenv, fetchurl, makeWrapper -, llvmPackages_10, llvmPackages_11, ed, gnugrep, coreutils +, llvmPackages_10, llvmPackages_11, ed, gnugrep, coreutils, xdg_utils , glib, gtk3, gnome3, gsettings-desktop-schemas, gn, fetchgit , libva ? null , pipewire_0_2 @@ -204,6 +204,9 @@ 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" + . w EOF |