Wait for patch process to exit

Bump to 1.2.9-2
This commit is contained in:
2022-02-27 13:36:57 +07:00
parent f7e5362e86
commit 8f541ff0c4
3 changed files with 17 additions and 9 deletions

View File

@ -12,6 +12,7 @@ class LinuxUtils:
"""Execute a command using pkexec (friendly gui)
"""
rsp = await asyncio.create_subprocess_exec(*args)
await rsp.wait()
match rsp.returncode:
case 127:
raise OSError("Authentication failed.")