From caaa92756f6cba2bd07a424e21cbfe1de308d653 Mon Sep 17 00:00:00 2001 From: Mollusk Date: Thu, 29 Oct 2026 14:59:00 -0400 Subject: [PATCH] trb.sh: require pkexec instead of falling back to gksudo Co-Authored-By: Claude Opus 5.5 --- trb.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/trb.sh b/trb.sh index 924f9bb..37e6b52 100755 --- a/trb.sh +++ b/trb.sh @@ -6,15 +6,11 @@ if [ ! -f /usr/bin/zenity ];then fi -distro=$(lsb_release -a | grep -o "VoidLinux") - -auth_prompt_path=$(which pkexec) - -if [ -f ${auth_prompt_path} ];then - su_prompt="pkexec" -else - su_prompt="gksudo" +if ! command -v pkexec >/dev/null 2>&1;then + echo "pkexec not installed (install polkit)..." + exit 1 fi +su_prompt="pkexec" zenity --question --text "Do you want to trim?" if [[ $? == 1 ]];then