remove linux tray, since pkexec can not work under run_as env

This commit is contained in:
rustdesk 2023-06-09 23:16:21 +08:00
parent 53431eb162
commit 330bc03768
2 changed files with 0 additions and 10 deletions

View File

@ -172,15 +172,6 @@ pub fn core_main() -> Option<Vec<String>> {
log::info!("start --server with user {}", crate::username());
#[cfg(any(target_os = "linux", target_os = "windows"))]
{
#[cfg(target_os = "linux")]
std::thread::spawn(move || {
std::thread::sleep(std::time::Duration::from_secs(3));
if crate::platform::is_root() {
hbb_common::allow_err!(crate::platform::run_as_user(vec!["--tray"], None));
} else {
hbb_common::allow_err!(crate::run_me(vec!["--tray"]));
}
});
crate::start_server(true);
return None;
}

View File

@ -284,7 +284,6 @@ pub fn set_option(key: String, value: String) {
if value == "Y" {
if crate::platform::uninstall_service(true) {
std::process::exit(0);
return;
}
} else {
if crate::platform::install_service() {