From d6d4cf185ed7c6cfad369d694e844b3a5e98371f Mon Sep 17 00:00:00 2001 From: Rail Aliiev Date: Sat, 6 Aug 2016 21:42:43 -0400 Subject: 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. --- pkgs/applications/window-managers/i3/lock-fancy.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pkgs/applications/window-managers/i3') diff --git a/pkgs/applications/window-managers/i3/lock-fancy.nix b/pkgs/applications/window-managers/i3/lock-fancy.nix index dd7f89b2a8ded..378001528b1f4 100644 --- a/pkgs/applications/window-managers/i3/lock-fancy.nix +++ b/pkgs/applications/window-managers/i3/lock-fancy.nix @@ -1,5 +1,5 @@ { stdenv, fetchFromGitHub, coreutils, scrot, imagemagick, gawk -, i3lock-color +, i3lock-color, getopt, fontconfig }: stdenv.mkDerivation rec { @@ -21,6 +21,8 @@ stdenv.mkDerivation rec { sed -i -e "s|i3lock -n |${i3lock-color}/bin/i3lock-color -n |" lock sed -i -e 's|ICON="$SCRIPTPATH/lockdark.png"|ICON="'$out'/share/i3lock-fancy/lockdark.png"|' lock sed -i -e 's|ICON="$SCRIPTPATH/lock.png"|ICON="'$out'/share/i3lock-fancy/lock.png"|' lock + sed -i -e "s|getopt |${getopt}/bin/getopt |" lock + sed -i -e "s|fc-match |${fontconfig.bin}/bin/fc-match |" lock ''; installPhase = '' mkdir -p $out/bin $out/share/i3lock-fancy -- cgit 1.4.1