![]() Registered Member ![]()
|
Hello,
Sorry for the bad english, i'm french ;) I've been looking for a answer since 2 days, sont hope i will find it here. Also, i don't know if i am in the right category, so if i'm wrong, please redirect me :P I'm running Debian, in KDE. This is my problem : I've created a variant of the "Kidtimer" program, to limite the time passed by my children on their computer. It currently counts the time when the session is active, so they have for example 2 Hours of computer on week-ends. But my children now wants to listen to music without loosing time (and also making renders in Blender without loosing time). I thinked i can and a command that detect when the screen is locked or not, so the computer will count time ont when screen is activated, wich means they can do background tasks. So, I am looking for the command that can mesure when screen is locked (currently, my program detect when session is open or not) to complete the program. Does someone have a idea how i can do that ? Help is appreciated :) Thanks =D |
![]() Registered Member ![]()
|
You could examine the active processes. At here, with the plasma 5, when the screen is locked:
|
![]() Registered Member ![]()
|
in dbus, there is the org.freedesktop.ScreenSaver.ActiveChanged signal that your app can listen to, to be notified when the screen is locked or unlocked.
airdrik, proud to be a member of KDE forums since 2008-Dec.
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]