summaryrefslogtreecommitdiffstats
path: root/src/utils/menu.py
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-11-13 19:41:20 +0100
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-11-25 10:26:52 +0100
commit37bf71c8bfc5c09f842fb1aa859ebf84de8c8d66 (patch)
treed06b28dcc343d9c920b3352f18a591c4afa8a71d /src/utils/menu.py
parentbd921dcbd69526c22cd5f2acf60f6ab528e50c04 (diff)
src: add user session detection implementationwinlinux
Detect user login and logout for Linux and Windows. Report an active interactive session through the /refresh response so a new ogserver instance can update the session status. Poll the session change in 5 second intervals in a thread. Use the same event socket previously used by the old session detection mechanism to notify a session change. Use the method check_interactive_session_change in each ogOperations.py to report the session status. Return values: None: no session changes are found True: login False: logout Windows Verify if psutil.users() has any value. Linux Verify all the psutil.users() asociated to a terminal.
Diffstat (limited to 'src/utils/menu.py')
0 files changed, 0 insertions, 0 deletions