trb.sh: made auth detection slightly better
This commit is contained in:
parent
d05dca97b0
commit
b688849dd0
5
trb.sh
5
trb.sh
@ -5,9 +5,12 @@ if [ ! -f /usr/bin/zenity ];then
|
|||||||
exit 0;
|
exit 0;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
distro=$(lsb_release -a | grep -o "VoidLinux")
|
distro=$(lsb_release -a | grep -o "VoidLinux")
|
||||||
|
|
||||||
if [ $distro = "Solus" ];then
|
auth_prompt_path=$(which pkexec)
|
||||||
|
|
||||||
|
if [ -f ${auth_prompt_path} ];then
|
||||||
su_prompt="pkexec"
|
su_prompt="pkexec"
|
||||||
else
|
else
|
||||||
su_prompt="gksudo"
|
su_prompt="gksudo"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user