allow to rename the profile without a browser restart and remove old sockets and registry entry when browser closes
This commit is contained in:
@@ -191,7 +191,6 @@ def cmd_rename_profile(target_browser, alias):
|
||||
console.print(f"[red]Error:[/red] {e}")
|
||||
sys.exit(1)
|
||||
console.print(f"[green]Profile renamed to '{alias}'[/green]")
|
||||
console.print(" Restart the browser for the change to take effect.")
|
||||
|
||||
|
||||
# ── install ────────────────────────────────────────────────────────────────────
|
||||
|
||||
@@ -98,6 +98,9 @@ def stdin_reader(alias: str):
|
||||
# Profile alias handshake
|
||||
if msg.get("type") == "hello":
|
||||
continue # already handled during startup
|
||||
if msg.get("type") == "bye":
|
||||
_cleanup(alias)
|
||||
os._exit(0)
|
||||
|
||||
msg_id = msg.get("id")
|
||||
if msg_id:
|
||||
|
||||
Reference in New Issue
Block a user