restart ui by killing webhelper

this cleanly reloads the ui, prevents memory leaks, and won't break the toasts
This commit is contained in:
AAGaming
2024-02-14 17:49:52 -05:00
parent 091428f683
commit ee6122b97d
2 changed files with 19 additions and 17 deletions
@@ -156,6 +156,10 @@ async def service_start(service_name : str) -> bool:
res = run(cmd, stdout=PIPE, stderr=STDOUT)
return res.returncode == 0
async def restart_webhelper() -> bool:
res = run(["killall", "-s", "SIGTERM", "steamwebhelper"], stdout=DEVNULL, stderr=DEVNULL)
return res.returncode == 0
def get_privileged_path() -> str:
path = os.getenv("PRIVILEGED_PATH")