mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-02-17 22:11:30 +08:00
fix: msi, prevent black window (#13665)
For msi version, the black window is shown when creating desktop shortcut for connection. The exe version does not have this issue. Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -1882,6 +1882,7 @@ oLink.Save
|
||||
.to_owned();
|
||||
std::process::Command::new("cscript")
|
||||
.arg(&shortcut)
|
||||
.creation_flags(CREATE_NO_WINDOW)
|
||||
.output()?;
|
||||
allow_err!(std::fs::remove_file(shortcut));
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user