summaryrefslogtreecommitdiff
path: root/hel
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-02-20 22:39:19 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-02-20 22:39:19 +0100
commit2d7616fb3070fc5aeb2b3f5cc7082dcf21714a6f (patch)
tree2c09a1bedae80ea2535ff034b6c5a4d64899f34b /hel
parent74910038136583c57eb7bda7ae00485f226f76e1 (diff)
downloadnixos-2d7616fb3070fc5aeb2b3f5cc7082dcf21714a6f.tar
nixos-2d7616fb3070fc5aeb2b3f5cc7082dcf21714a6f.tar.gz
nixos-2d7616fb3070fc5aeb2b3f5cc7082dcf21714a6f.tar.bz2
nixos-2d7616fb3070fc5aeb2b3f5cc7082dcf21714a6f.tar.xz
nixos-2d7616fb3070fc5aeb2b3f5cc7082dcf21714a6f.zip
Fix setuid-wrappers path
Diffstat (limited to 'hel')
-rw-r--r--hel/recv-media.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/hel/recv-media.nix b/hel/recv-media.nix
index 52d5bae6..a074e76b 100644
--- a/hel/recv-media.nix
+++ b/hel/recv-media.nix
@@ -6,6 +6,7 @@
6, showTitle ? true 6, showTitle ? true
7, ffmpeg ? null 7, ffmpeg ? null
8, gnused ? null 8, gnused ? null
9, wrapperDir ? "/run/wrappers/bin"
9}: 10}:
10 11
11assert showTitle -> ffmpeg != null && gnused != null && notifyUser != null; 12assert showTitle -> ffmpeg != null && gnused != null && notifyUser != null;
@@ -15,7 +16,7 @@ writeScriptBin "recv-media" ''
15 16
16 pid=$? 17 pid=$?
17 18
18 PATH=${eject}/bin:${coreutils}/bin:${if showTitle then ''${ffmpeg}/bin:${gnused}/bin:'' else ""}/var/setuid-wrappers 19 PATH=${eject}/bin:${coreutils}/bin:${if showTitle then ''${ffmpeg}/bin:${gnused}/bin:'' else ""}${wrapperDir}
19 20
20 exec 1> >(logger --id=$pid -t recv-media -p user.notice) 21 exec 1> >(logger --id=$pid -t recv-media -p user.notice)
21 exec 2> >(logger --id=$pid -t recv-media -p user.error) 22 exec 2> >(logger --id=$pid -t recv-media -p user.error)