Skip to content

Configuration ​

There is no configuration file.

Home-manager options ​

OptionTypeDefaultEffect
services.lys-polkit.enableboolfalseInstalls the package and links its user unit into graphical-session.target.wants
services.lys-polkit.packagepackagethe flake's lys-polkitPackage whose binary and user unit are used

Build-time values ​

Set with go build -ldflags "-X <variable>=<value>".

VariableDefaultEffect
main.helperPrograms/usr/lib/polkit-1/polkit-agent-helper-1:/run/wrappers/bin/polkit-agent-helper-1Colon-separated candidate paths of the setuid helper; the first that exists runs, only when the helper socket is absent
main.versionModule version recorded by GoPrinted by --version

Command line ​

lys-polkit [--version | --help]
lys-polkit revoke
InvocationEffect
lys-polkitServes as the session's agent until SIGTERM or SIGINT, then unregisters
lys-polkit revokeRevokes every retained admin authorization of the session (15 s timeout)
--versionPrints lys-polkit <version> and exits
--helpPrints usage and exits

Exit status: 0 on success, 1 on failure, 2 on an invalid command line.

Language ​

polkitd translates action messages into the locale lys-polkit registers with: the first set of LC_ALL, LC_MESSAGES, LANG, else C. lys-polkit's own strings follow LANGUAGE, LC_ALL, LC_MESSAGES, LANG (see details). The unit inherits these from the systemd user manager.

User unit ​

polkit/dist/lys-polkit.service.in:

SettingValue
PartOf, After, WantedBygraphical-session.target
Restart / RestartSecon-failure / 2
StartLimitBurst / StartLimitIntervalSec3 / 60

A repeatedly refused registration ends as a failed unit, not a restart loop.

Released under the MIT License.