Use pkexec instead of sudo

This commit is contained in:
Tony George 2017-10-06 20:21:34 +05:30
parent 1acad5a0af
commit 9ee0f5bae4

View File

@ -14,7 +14,7 @@ else
#script is running in non-interactive mode
if [ $XDG_SESSION_TYPE = "wayland" ] ; then
xhost +SI:localuser:root
sudo ${app_command}
pkexec ${app_command}
xhost -SI:localuser:root
xhost
elif command -v gksu >/dev/null 2>&1; then