diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2021-12-10 12:52:48 +0100 |
---|---|---|
committer | Jose M. Guisado <jguisado@soleta.eu> | 2021-12-10 12:56:50 +0100 |
commit | 355e6caad360f2a5acedb125a3f421b8aee7a2e0 (patch) | |
tree | cf5b4e54b0eac6d8bbb942c42f3c69982e8b505a /src/windows/__init__.py | |
parent | 1601ad9b298ccefa1a71ae9ccfb939c73a5fc0ec (diff) |
#1065 windows: use shutdown for poweroff and reboot operations
Running ogClient as a service (non interactive user) breaks
poweroff and reboot using ExitWindowsEx function in user32.dll.
Spawn a subshell using os.system and use the 'shutdown' command
instead.
This is a terminating command, we don't need fine grain from
subprocess module.
Diffstat (limited to 'src/windows/__init__.py')
0 files changed, 0 insertions, 0 deletions