mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-13 19:51:28 +03: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();
|
.to_owned();
|
||||||
std::process::Command::new("cscript")
|
std::process::Command::new("cscript")
|
||||||
.arg(&shortcut)
|
.arg(&shortcut)
|
||||||
|
.creation_flags(CREATE_NO_WINDOW)
|
||||||
.output()?;
|
.output()?;
|
||||||
allow_err!(std::fs::remove_file(shortcut));
|
allow_err!(std::fs::remove_file(shortcut));
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
Reference in New Issue
Block a user