fix(desktop-update): clean up throwaway browser profile directory

Deletes the temporary --user-data-dir used by the update UI shim when the browser process is shut down, preventing ~100MB leaks per update. Fixes issue #104350.
This commit is contained in:
Rohith Pariki
2026-09-06 20:27:03 +05:30
committed by Teknium
parent d538f4e929
commit 97f74b8361
+1
View File
@@ -290,6 +290,7 @@ stop_ui() { # error/manual outcomes keep the window up briefly so a watching
if [ -n "$UI_BROWSER_PID" ]; then
{ kill "$UI_BROWSER_PID" && wait "$UI_BROWSER_PID"; } 2>/dev/null
fi
rm -rf "${TMPDIR:-/tmp}/hermes-update-ui-$$" 2>/dev/null || true
UI_SERVER_PID="" UI_BROWSER_PID=""
}