mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-05-02 08:46:04 -04:00
better solution when using pkexec with --user: wrap sudo --user with lxqt-sudo
This commit is contained in:
parent
d4e02de43a
commit
e20b9e2133
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue