mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-05 00:36:14 +00:00
portable-service: exchange ipc server/client
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
1 parent
e186eec5df
commit
9f73b89f21
4 files changed
+239
-281
No files matched your search
@@ -770,11 +770,11 @@ fn cm_inner_send(id: i32, data: Data) {
|
||||
pub fn can_elevate() -> bool {
|
||||
#[cfg(windows)]
|
||||
{
|
||||
use crate::portable_service::client::{
|
||||
PortableServiceStatus::NotStarted, PORTABLE_SERVICE_STATUS,
|
||||
};
|
||||
return !crate::platform::is_installed()
|
||||
&& PORTABLE_SERVICE_STATUS.lock().unwrap().clone() == NotStarted;
|
||||
&& !crate::portable_service::client::PORTABLE_SERVICE_RUNNING
|
||||
.lock()
|
||||
.unwrap()
|
||||
.clone();
|
||||
}
|
||||
#[cfg(not(windows))]
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user