Skip to content

Commit

Permalink
update runas to 1.2.0 (rustdesk#7271)
Browse files Browse the repository at this point in the history
Signed-off-by: 21pages <[email protected]>
  • Loading branch information
21pages authored Feb 27, 2024
1 parent 6720bb9 commit 1d9b178
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
8 changes: 5 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ lazy_static = "1.4"
sha2 = "0.10"
repng = "0.2"
parity-tokio-ipc = { git = "https://github.com/rustdesk-org/parity-tokio-ipc" }
runas = "=1.0" # https://github.com/mitsuhiko/rust-runas/issues/13
magnum-opus = { git = "https://github.com/rustdesk-org/magnum-opus" }
dasp = { version = "0.11", features = ["signal", "interpolate-linear", "interpolate"], optional = true }
rubato = { version = "0.12", optional = true }
Expand Down Expand Up @@ -107,6 +106,7 @@ virtual_display = { path = "libs/virtual_display", optional = true }
impersonate_system = { git = "https://github.com/21pages/impersonate-system" }
shared_memory = "0.12"
tauri-winrt-notification = "0.1.2"
runas = "1.2"

[target.'cfg(target_os = "macos")'.dependencies]
objc = "0.2"
Expand Down
5 changes: 2 additions & 3 deletions src/platform/windows.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use super::{CursorData, ResultType};
use crate::common::PORTABLE_APPNAME_RUNTIME_ENV_KEY;
use crate::{
ipc,
custom_server::*,
ipc,
privacy_mode::win_topmost_window::{self, WIN_TOPMOST_INJECTED_PROCESS_EXE},
};
use hbb_common::libc::{c_int, wchar_t};
Expand All @@ -15,7 +15,6 @@ use hbb_common::{
message_proto::{Resolution, WindowsSession},
sleep, timeout, tokio,
};
use sha2::digest::generic_array::functional::FunctionalSequence;
use std::process::{Command, Stdio};
use std::{
collections::HashMap,
Expand Down Expand Up @@ -2419,7 +2418,7 @@ fn run_after_run_cmds(silent: bool) {
log::debug!("Spawn new window");
allow_err!(std::process::Command::new("cmd")
.arg("/c")
.arg("timeout /t 2 & start {app}://")
.arg(format!("timeout /t 2 & start {app}://"))
.creation_flags(winapi::um::winbase::CREATE_NO_WINDOW)
.spawn());
}
Expand Down

0 comments on commit 1d9b178

Please sign in to comment.