diff -Naur a/unetbootin.sh b/unetbootin.sh --- a/unetbootin.sh +++ b/unetbootin.sh @@ -1,6 +1,6 @@ #!/bin/bash export QT_X11_NO_MITSHM=1 -if [ $(which pkexec) ]; then +if [ $(id -u) -ne 0 -a $(which pkexec) ]; then pkexec --disable-internal-agent "/usr/bin/unetbootin.elf" "$@" 2>/tmp/_polkit_error if [ -s /tmp/_polkit_error ]; then zenity --error --text="`cat /tmp/_polkit_error`"