Detect if polkit user-agent is running
is there any way to detect if a policykit user-agent is running before
actually calling pkexec to display the dialog with the login prompt?
>From the pkexec man page it looks like calling
pkexec --disable-internal-agent <command>
should be sufficient as test, since the exit code 127 should tell me no
user-agent is running. However here with lxpolkit I also get the "127"
when the user hits the "Cancel" button, so this does not seem to be
So, does anyone know if it is possible to check the presence of the
user-agent before I actually call pkexec?
.-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-.
No more blah, blah, blah!
-- Kirk, "Miri", stardate 2713.6