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:
@@ -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=""
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user