parent
6720bb9f6b
commit
1d9b1781d4
8
Cargo.lock
generated
8
Cargo.lock
generated
@ -5364,12 +5364,14 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "runas"
|
name = "runas"
|
||||||
version = "1.0.0"
|
version = "1.2.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "ed87390fefd18965ff20baae5aeb9913bcf82d2b59dc04c0f6d8f17f7be56ff2"
|
checksum = "b96d6b6c505282b007a9b009f2aa38b2fd0359b81a0430ceacc60f69ade4c6a0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cc",
|
"libc",
|
||||||
|
"security-framework-sys",
|
||||||
"which",
|
"which",
|
||||||
|
"windows-sys 0.48.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -57,7 +57,6 @@ lazy_static = "1.4"
|
|||||||
sha2 = "0.10"
|
sha2 = "0.10"
|
||||||
repng = "0.2"
|
repng = "0.2"
|
||||||
parity-tokio-ipc = { git = "https://github.com/rustdesk-org/parity-tokio-ipc" }
|
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" }
|
magnum-opus = { git = "https://github.com/rustdesk-org/magnum-opus" }
|
||||||
dasp = { version = "0.11", features = ["signal", "interpolate-linear", "interpolate"], optional = true }
|
dasp = { version = "0.11", features = ["signal", "interpolate-linear", "interpolate"], optional = true }
|
||||||
rubato = { version = "0.12", optional = true }
|
rubato = { version = "0.12", optional = true }
|
||||||
@ -107,6 +106,7 @@ virtual_display = { path = "libs/virtual_display", optional = true }
|
|||||||
impersonate_system = { git = "https://github.com/21pages/impersonate-system" }
|
impersonate_system = { git = "https://github.com/21pages/impersonate-system" }
|
||||||
shared_memory = "0.12"
|
shared_memory = "0.12"
|
||||||
tauri-winrt-notification = "0.1.2"
|
tauri-winrt-notification = "0.1.2"
|
||||||
|
runas = "1.2"
|
||||||
|
|
||||||
[target.'cfg(target_os = "macos")'.dependencies]
|
[target.'cfg(target_os = "macos")'.dependencies]
|
||||||
objc = "0.2"
|
objc = "0.2"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
use super::{CursorData, ResultType};
|
use super::{CursorData, ResultType};
|
||||||
use crate::common::PORTABLE_APPNAME_RUNTIME_ENV_KEY;
|
use crate::common::PORTABLE_APPNAME_RUNTIME_ENV_KEY;
|
||||||
use crate::{
|
use crate::{
|
||||||
ipc,
|
|
||||||
custom_server::*,
|
custom_server::*,
|
||||||
|
ipc,
|
||||||
privacy_mode::win_topmost_window::{self, WIN_TOPMOST_INJECTED_PROCESS_EXE},
|
privacy_mode::win_topmost_window::{self, WIN_TOPMOST_INJECTED_PROCESS_EXE},
|
||||||
};
|
};
|
||||||
use hbb_common::libc::{c_int, wchar_t};
|
use hbb_common::libc::{c_int, wchar_t};
|
||||||
@ -15,7 +15,6 @@ use hbb_common::{
|
|||||||
message_proto::{Resolution, WindowsSession},
|
message_proto::{Resolution, WindowsSession},
|
||||||
sleep, timeout, tokio,
|
sleep, timeout, tokio,
|
||||||
};
|
};
|
||||||
use sha2::digest::generic_array::functional::FunctionalSequence;
|
|
||||||
use std::process::{Command, Stdio};
|
use std::process::{Command, Stdio};
|
||||||
use std::{
|
use std::{
|
||||||
collections::HashMap,
|
collections::HashMap,
|
||||||
@ -2419,7 +2418,7 @@ fn run_after_run_cmds(silent: bool) {
|
|||||||
log::debug!("Spawn new window");
|
log::debug!("Spawn new window");
|
||||||
allow_err!(std::process::Command::new("cmd")
|
allow_err!(std::process::Command::new("cmd")
|
||||||
.arg("/c")
|
.arg("/c")
|
||||||
.arg("timeout /t 2 & start {app}://")
|
.arg(format!("timeout /t 2 & start {app}://"))
|
||||||
.creation_flags(winapi::um::winbase::CREATE_NO_WINDOW)
|
.creation_flags(winapi::um::winbase::CREATE_NO_WINDOW)
|
||||||
.spawn());
|
.spawn());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user