fix: process-name window labels, ghost window filtering, self-restart after setup

This commit is contained in:
Helios 2026-03-06 02:06:20 +01:00
parent 0b4a6de8ae
commit 450604bbbd
No known key found for this signature in database
GPG key ID: C8259547CD8309B5
2 changed files with 134 additions and 15 deletions

View file

@ -258,7 +258,14 @@ async fn main() {
} else {
display::info_line("", "config:", "saved");
}
c
// Self-restart after first-time setup so all config takes effect cleanly
println!();
display::info_line("🔄", "restart:", "Config saved. Restarting...");
release_instance_lock();
let exe = std::env::current_exe().expect("Failed to get current exe path");
let args: Vec<String> = std::env::args().skip(1).collect();
let _ = std::process::Command::new(exe).args(&args).spawn();
std::process::exit(0);
}
};