polkit - aaronwmorris/indi-allsky GitHub Wiki
Show all actions
pkaction
Show action info
pkaction -v --action-id org.freedesktop.login1.reboot
Script testing
pkcheck -p "$PPID" -a org.freedesktop.login1.reboot
echo $?
pkaction
pkaction -v --action-id org.freedesktop.login1.reboot
pkcheck -p "$PPID" -a org.freedesktop.login1.reboot
echo $?