Package list lightdm-gtk-greeter-settings / a68f920
xembed mode: run app without privileges if pkexec failed (do not leave xfce4-settings-manager in invalid state) Andrew P. 6 years ago
1 changed file(s) with 12 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
00 #!/bin/sh
1 pkexec "/usr/bin/lightdm-gtk-greeter-settings" "$@"
1
2 APP_PATH="/usr/bin/lightdm-gtk-greeter-settings"
3
4 # Check for "socket" argument
5 for i in "$@"; do
6 if [[ "$i" == "-s="* ]] || [[ "$i" == "--socket-id="* ]]; then
7 pkexec "${APP_PATH}" "$@" || "${APP_PATH}" "$@"
8 exit $?
9 fi
10 done
11
12 pkexec "${APP_PATH}" "$@"