mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-13 10:31:29 +03:00
feat: implement tray in linux
This commit is contained in:
@@ -148,7 +148,7 @@ pub fn core_main() -> Option<Vec<String>> {
|
||||
return None;
|
||||
} else if args[0] == "--server" {
|
||||
log::info!("start --server");
|
||||
#[cfg(not(target_os = "macos"))]
|
||||
#[cfg(target_os = "windows")]
|
||||
{
|
||||
crate::start_server(true);
|
||||
return None;
|
||||
@@ -158,6 +158,11 @@ pub fn core_main() -> Option<Vec<String>> {
|
||||
std::thread::spawn(move || crate::start_server(true));
|
||||
// to-do: for flutter, starting tray not ready yet, or we can reuse sciter's tray implementation.
|
||||
}
|
||||
#[cfg(all(target_os = "linux", feature = "flutter"))]
|
||||
{
|
||||
std::thread::spawn(move || crate::start_server(true));
|
||||
crate::tray::start_tray(crate::ui_interface::OPTIONS.clone());
|
||||
}
|
||||
} else if args[0] == "--import-config" {
|
||||
if args.len() == 2 {
|
||||
let filepath;
|
||||
|
||||
Reference in New Issue
Block a user