diff options
Diffstat (limited to 'unetbootin.sh')
-rw-r--r-- | unetbootin.sh | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/unetbootin.sh b/unetbootin.sh index 8296ed5aa8c9..4e85a7769f7b 100644 --- a/unetbootin.sh +++ b/unetbootin.sh @@ -2,15 +2,8 @@ export QT_X11_NO_MITSHM=1 -ELF_FILE='/usr/bin/unetbootin.elf' -TMP_FILE='/tmp/_polkit_error' - if [ $(command -v pkexec) ]; then - pkexec --disable-internal-agent "${ELF_FILE}" "$@" 2>"${TMP_FILE}" - if [ -s "${TMP_FILE}" ]; then - zenity --error --text="$(cat ${TMP_FILE})" - rm -f "${TMP_FILE}" - fi + pkexec --disable-internal-agent '/usr/bin/unetbootin.elf' "$@" else - "${ELF_FILE}" "$@" + '/usr/bin/unetbootin.elf' "$@" fi |