git.iko.soy/typeable/nixpkgs
on master help sign in
i3lock-fancy: use absolute paths (#17569)

When it's used from command line or as a i3 shortcut, i3lock-fancy works without any issues. If you try to pass it as an argument to xss-lock or xautolock running as a systemd user service, getopt and fc-match are not in PATH and locking doesn't work as expected. This patch replaces non absolute paths with stable ones and should fix the issue.

commitd6d4cf185ed7c6cfad369d694e844b3a5e98371f authorRail Aliiev <rail@mozilla.com> dateSat 6 Aug 2016, 21:42 (10 years ago) parent8dc53d7
1 file changed+3−1
pkgs/applications/window-managers/i3/lock-fancy.nix+3−1
pkgs/applications/window-managers/i3/lock-fancy.nix+3−1
@@ -1,5 +1,5 @@
11{ stdenv, fetchFromGitHub, coreutils, scrot, imagemagick, gawk
2−, i3lock-color
2+, i3lock-color, getopt, fontconfig
33}:
44
55stdenv.mkDerivation rec {
@@ -21,6 +21,8 @@ stdenv.mkDerivation rec {
2121 sed -i -e "s|i3lock -n |${i3lock-color}/bin/i3lock-color -n |" lock
2222 sed -i -e 's|ICON="$SCRIPTPATH/lockdark.png"|ICON="'$out'/share/i3lock-fancy/lockdark.png"|' lock
2323 sed -i -e 's|ICON="$SCRIPTPATH/lock.png"|ICON="'$out'/share/i3lock-fancy/lock.png"|' lock
24+ sed -i -e "s|getopt |${getopt}/bin/getopt |" lock
25+ sed -i -e "s|fc-match |${fontconfig.bin}/bin/fc-match |" lock
2426 '';
2527 installPhase = ''
2628 mkdir -p $out/bin $out/share/i3lock-fancy