diff --git a/trb.sh b/trb.sh index b953226..0c542f0 100755 --- a/trb.sh +++ b/trb.sh @@ -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"