modify comment

This commit is contained in:
rustdesk 2024-03-28 11:52:43 +08:00
parent 6e44a91d0b
commit 6186b41e3f

View File

@ -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();