fix: improve Linux tray support and add --no-tray option (#4958)

This commit is contained in:
Sline
2025-10-07 10:02:11 +08:00
committed by GitHub
parent c05395c258
commit d3477159a8
4 changed files with 47 additions and 2 deletions

View File

@@ -2,5 +2,14 @@
fn main() {
#[cfg(feature = "tokio-trace")]
console_subscriber::init();
// Check for --no-tray command line argument
let args: Vec<String> = std::env::args().collect();
if args.contains(&"--no-tray".to_string()) {
unsafe {
std::env::set_var("CLASH_VERGE_DISABLE_TRAY", "1");
}
}
app_lib::run();
}