trb.sh: made auth detection slightly better

This commit is contained in:
mollusk 2017-06-11 18:39:03 -07:00
parent d05dca97b0
commit b688849dd0

5
trb.sh
View File

@ -5,9 +5,12 @@ if [ ! -f /usr/bin/zenity ];then
exit 0;
fi
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"
else
su_prompt="gksudo"