diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-11-13 19:41:20 +0100 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-11-15 13:23:28 +0100 |
commit | 693c4f4c5c096e067b7d5621f595e26f2b794824 (patch) | |
tree | 3bf778629ccf42159f7f98bb12168b4c2b8ecce1 /src/virtual/ogOperations.py | |
parent | 7e8d5e71ce2a441faa85a178481f4ef30a7901d5 (diff) |
src: add user session detection implementationwinlinux
Detect user login and logout for Linux and Windows.
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.
Report an active interactive session through the /refresh response
so a new ogserver instance can update the session status.
Diffstat (limited to 'src/virtual/ogOperations.py')
-rw-r--r-- | src/virtual/ogOperations.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/virtual/ogOperations.py b/src/virtual/ogOperations.py index c51f59d..86ae0ed 100644 --- a/src/virtual/ogOperations.py +++ b/src/virtual/ogOperations.py @@ -629,3 +629,6 @@ class OgVirtualOperations: for k, v in device_names.items(): f.write(f'{k}={v}\n') f.truncate() + + def check_interactive_session_change(self): + return None |