[Python] User Idle time in Linux

Discussão em 'Python' iniciado por Stack, Agosto 17, 2025.

  1. Stack

    Stack Membro Participativo

    I need to check how much time has passed since last user input occurence (preferred way - in python) on Linux (lucid - 10.4).

    I know that this is easy in normal way (just using XScreenSaverQueryInfo), but the tricky part is that I don't have x11/extensions/scrnsaver.h header and I HAVE to do that some other way (even if I install needed package I cannot install packeges on 100 other computers on which it will work - I don't have permission to do that).

    Continue reading...

Compartilhe esta Página