diff --git a/PINCE.sh b/PINCE.sh index dc7e6686..5683be13 100755 --- a/PINCE.sh +++ b/PINCE.sh @@ -18,8 +18,9 @@ along with this program. If not, see . # Change this bullcrap when polkit is implemented OS=$(lsb_release -si) -if [ $OS = "Debian" ]; then +# Get rid of gksudo when Debian 8 support drops or polkit gets implemented +if [ $OS = "Debian" ] && [ -x "$(command -v gksudo)" ]; then gksudo python3 PINCE.py else sudo python3 PINCE.py -fi \ No newline at end of file +fi