mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-10-01 08:25:45 -04:00
better solution when using pkexec with --user: wrap sudo --user with lxqt-sudo
This commit is contained in:
parent
d4e02de43a
commit
e20b9e2133
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user