mirror of
https://github.com/linuxmint/timeshift.git
synced 2024-09-11 08:55:25 +03:00
Merge pull request #567 from mikhailnov/pkexec-fix
Simplify launch via pkexec
This commit is contained in:
commit
1373b565e7
@ -18,7 +18,7 @@ else
|
||||
xhost -SI:localuser:root
|
||||
xhost
|
||||
elif command -v pkexec >/dev/null 2>&1; then
|
||||
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY ${app_command}
|
||||
pkexec ${app_command}
|
||||
elif command -v sudo >/dev/null 2>&1; then
|
||||
x-terminal-emulator -e "sudo ${app_command}"
|
||||
elif command -v su >/dev/null 2>&1; then
|
||||
|
Loading…
Reference in New Issue
Block a user