diff --git a/src/tray.rs b/src/tray.rs index ab395091d6..c1be78d434 100644 --- a/src/tray.rs +++ b/src/tray.rs @@ -88,17 +88,8 @@ pub fn make_tray() -> hbb_common::ResultType<()> { crate::platform::macos::handle_application_should_open_untitled_file(); #[cfg(target_os = "windows")] { - // Do not use the follwoing code (start uni link). - // It may be unable to open the app on some machines. - // eg. crate::get_uri_prefix() has some special characters or non-ascii characters. - // - // Command::new("cmd") - // .arg("/c") - // .arg(&format!("start {}", crate::get_uri_prefix())) - // .creation_flags(winapi::um::winbase::CREATE_NO_WINDOW) - // .spawn() - // .ok(); - + // Do not use "start uni link" way, it may not work on some Windows, and pop out error + // dialog, I found on one user's desktop, but no idea why, Windows is shit. // Use `run_me` instead. // `allow_multiple_instances` in `flutter/windows/runner/main.cpp` allows only one instance without args. crate::run_me::<&str>(vec![]).ok();