better solution when using pkexec with --user: wrap sudo --user with lxqt-sudo

This commit is contained in:
Patrick Schleizer 2019-10-22 09:08:18 -04:00
parent d4e02de43a
commit e20b9e2133
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -87,8 +87,7 @@ PATH="$(sudo --non-interactive /usr/lib/security-misc/echo-path)"
export PATH
if [ "$use_sudo" = "true" ]; then
SUDO_ASKPASS="/usr/lib/security-misc/askpass" \
sudo --askpass --user "$user_pkexec_wrapper" --set-home "$@"
lxqt-sudo sudo --user "$user_pkexec_wrapper" --set-home "$@"
else
lxqt-sudo "$@"
fi