From 7228f0930e62728f296e9635ec8f4ccc10db7888 Mon Sep 17 00:00:00 2001 From: Andreas Loibl Date: Sat, 19 Mar 2011 10:27:38 +0100 Subject: use "which" instead of full path for kdesu/ gksu --- backend/backend.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/backend.sh.in b/backend/backend.sh.in index e461387..15912b6 100755 --- a/backend/backend.sh.in +++ b/backend/backend.sh.in @@ -55,9 +55,9 @@ function get_root() exit $? fi if [ -z "$as_root" ]; then - for as_root in /usr/bin/kdesu /usr/bin/gksu exec + for as_root in kdesu gksu exec do - [ -x $as_root ] && break + which $as_root &>/dev/null && break done fi $as_root "$p" --pid $$ "${O_ARGS[@]}" &>/dev/null -- cgit v1.0