Compilation error:
timeoutd.c: In function 'read_wtmp':
timeoutd.c:421:22: error: passing argument 1 of 'localtime' from incompatible pointer type [-Wincompatible-pointer-types]
421 | tm = localtime(&ut.ut_time);
| ^
| |
| __uint32_t * {aka unsigned int }
In file included from timeoutd.c:40:
/usr/include/time.h:136:44: note: expected 'const time_t ' {aka 'const long int '} but argument is of type '__uint32_t ' {aka 'unsigned int '}
136 | extern struct tm localtime (const time_t *__timer) __THROW;
|
You can always log back in, but will be kicked out after one minute of grace time.
The program works in all respects except that after (forced) logout due to exceeding session time, the user may simply log back in.
(Note: I installed xorg-fonts-misc and xorg-xmessage along with timeoutd)
Sadly this doesn't work at all for me even with those packages installed. If you could help me trace down what is wrong, that would be awesome.
Hi, I needed to add packages xorg-fonts-misc and xorg-xmessage to get it to work on Manjaro XFCE
I see, I haven't realised that, thanks.
@SanskritFritz Thank you for updating. systemd (version 235) showed an error:
/usr/lib/systemd/system/timeoutd.service:8: Executable path is not absolute: pkill timeoutd
and I couldn't start timeoutd.service.
yuntan_t
Thanks. Just out of curiosity what makes the difference?
I'll update the package soon, but please tell me why it is better this way.
timeoutd.service is wrong format. Should be `ExecStop=/usr/bin/pkill timeoutd`.
I tried this program, it works great for console/ssh login however it does not work with LXDM (with systemd) login. It would be much more helpful if timeoutd can work with these new environment.