libgksu: fix sudo references (close #10524)

gksudo wasn't working because libgksu used wrong sudo file which doesn't have setuid bit

Committer: it isn't optimal, as it won't work on non-NixOS. I've got a
patch for it to use relative paths, but apparently something's wrong
with it and I don't want to kill much more time with it ATM.
This commit is contained in:
Demin Dmitriy 2015-10-21 21:10:04 +00:00 committed by Vladimír Čunát
parent 9800862397
commit f47103e015

View File

@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
# Fix some binary paths # Fix some binary paths
sed -i -e 's|/usr/bin/xauth|${xauth}/bin/xauth|g' libgksu/gksu-run-helper.c libgksu/libgksu.c sed -i -e 's|/usr/bin/xauth|${xauth}/bin/xauth|g' libgksu/gksu-run-helper.c libgksu/libgksu.c
sed -i -e 's|/usr/bin/sudo|${sudo}/bin/sudo|g' libgksu/libgksu.c sed -i -e 's|/usr/bin/sudo|/var/setuid-wrappers/sudo|g' libgksu/libgksu.c
sed -i -e 's|/bin/su\([^d]\)|/var/setuid-wrappers/su\1|g' libgksu/libgksu.c sed -i -e 's|/bin/su\([^d]\)|/var/setuid-wrappers/su\1|g' libgksu/libgksu.c
touch NEWS README touch NEWS README