We need an option LOGOUT or SWITCH ACCOUNT
Currently LittleBrother automatically LogOut user after time expiration. Unfortunately, in that case all open windows and apps will be closed. I will suggest from the configuration file enable an option change Log-Out to Switch User command. At least after login my son will be able to continue his school assignments.
That's a very good idea! However, this will require a substantially different approach to control the processes. I will keep this in mind.
I looked into this a little bit. One way to trigger the switch session functionality is to use d-bus. And, in fact there is a Python d-bus library (see https://dbus.freedesktop.org/doc/dbus-python/). However, this raises the question of how to measure the active time of a user since switching sessions leaves all processes active. For LittleBrother would still be logged in. I need to do more research.
Yes, that would be very welcome feature.