From 65c4180a81969187ca3b90c3e5e31d3a517787bd Mon Sep 17 00:00:00 2001 From: Quad Date: Sat, 22 May 2021 23:33:08 +0200 Subject: [PATCH] Change gui if-statement --- scripts/tdp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tdp b/scripts/tdp index 0e18dbf..7ddead9 100755 --- a/scripts/tdp +++ b/scripts/tdp @@ -147,7 +147,7 @@ set_pl () { fi if [ "$EUID" -eq 0 ]; then echo $(w_to_uw $2) > $pl_path - elif [ $gui_used == 1 ]; then + elif ! [ -z $gui_used ]; then sudo -A bash -c "echo $(w_to_uw $2) > ${pl_path}" else sudo bash -c "echo $(w_to_uw $2) > ${pl_path}"