to display a reminder that I manually suppressed screen lock and to ensure that light-locker-command will be terminated on logout. (Caveat: with such simple example dialog window may outlive light-locker-command process killed directly by SIGTERM or SIGINT.)
I consider exec feature of light-locker-command as rather important because using dbus-send (or busctl, qdbus) from shell script to call org.freedesktop.ScreenSaverInhibit does not work since inhibit is cleared on disconnect. Managing of two independent processes in shell script (light-locker-command and dialog) is tricky when termination of any process should reliably kill its sibling.
Please, describe possibility to run a command passing it as additional arguments to
I expect that such feature should be clear from
light-locker-command(1)
man pagelight-locker-command --help
output. Though I am unsure if it is possible to specify several usage variants.For me it was not obvious that I can run
to display a reminder that I manually suppressed screen lock and to ensure that
light-locker-command
will be terminated on logout. (Caveat: with such simple example dialog window may outlivelight-locker-command
process killed directly bySIGTERM
orSIGINT
.)I consider exec feature of
light-locker-command
as rather important because usingdbus-send
(orbusctl
,qdbus
) from shell script to callorg.freedesktop.ScreenSaver
Inhibit
does not work since inhibit is cleared on disconnect. Managing of two independent processes in shell script (light-locker-command
and dialog) is tricky when termination of any process should reliably kill its sibling.