2024-09-15 06:24:53 +08:00
|
|
|
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
|
|
|
|
fn main() {
|
2025-08-18 23:40:25 +08:00
|
|
|
#[cfg(feature = "tokio-trace")]
|
|
|
|
|
console_subscriber::init();
|
2025-10-07 10:02:11 +08:00
|
|
|
|
|
|
|
|
// Check for --no-tray command line argument
|
|
|
|
|
let args: Vec<String> = std::env::args().collect();
|
2025-10-14 09:24:39 +08:00
|
|
|
if args.contains(&"--no-tray".into()) {
|
2025-10-07 10:02:11 +08:00
|
|
|
unsafe {
|
|
|
|
|
std::env::set_var("CLASH_VERGE_DISABLE_TRAY", "1");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-09-15 06:24:53 +08:00
|
|
|
app_lib::run();
|
2021-12-04 14:31:26 +08:00
|
|
|
}
|