Skip to content

Commit

Permalink
modify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rustdesk committed Mar 28, 2024
1 parent 6e44a91 commit 6186b41
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/tray.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6186b41

Please sign in to comment.