| 1 | |
| 2 | # polkit.sh — start the first polkit agent that exists on this system. |
| 3 | for agent in \ |
| 4 | /usr/lib/x86_64-linux-gnu/libexec/polkit-kde-authentication-agent-1 \ |
| 5 | /usr/lib/polkit-kde-authentication-agent-1 \ |
| 6 | /usr/libexec/polkit-gnome-authentication-agent-1 \ |
| 7 | /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 \ |
| 8 | /usr/libexec/polkit-mate-authentication-agent-1 \ |
| 9 | /usr/lib/mate-polkit/polkit-mate-authentication-agent-1 \ |
| 10 | "$(command -v lxpolkit)" |
| 11 | do |
| 12 | [[ -x $agent ]] && exec "$agent" |
| 13 | done |
| 14 | echo "polkit.sh: no polkit agent found" >&2 |