Error in freedesktop wiki? (inhibit)
David Herrmann
dh.herrmann at gmail.com
Sun Jan 15 19:21:07 UTC 2017
Hi
On Wed, Jan 11, 2017 at 12:41 AM, Stefano Probst <senden9 at gmail.com> wrote:
> Hi,
>
> is it possible that the article systemd/inhibit [1] contains an error?
> In this page „InhibitDelayMaxUSec“ is listed but in man/logind.conf [2]
> I see only a „InhibitDelayMaxSec“. Without a „U“.
The wiki page is actually correct. "Sec" is used for logind.conf,
"USec" is used in the DBus API. Reason for this is probably that via
DBus we wanted a simple uint64_t, hence providing "seconds" would lose
precision, so you specify the microseconds -> "USec".
In logind.conf, however, you can provide a normal
systemd-time-configuration-string with suffix, and the default is
always "seconds" (to follow the metric system, I guess?). So in the
configuration, you can use "100ms", "10s", "10h5s" etc., but if you
specify just "77", it will be interpreted as seconds.
Does that make sense?
Thanks
David
More information about the xdg
mailing list