mirror of
https://github.com/linuxmint/timeshift.git
synced 2024-09-11 08:55:25 +03:00
Use pkexec instead of sudo
This commit is contained in:
parent
1acad5a0af
commit
9ee0f5bae4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user