From 7ce5f8e8b681379542f70730566b7b6494108333 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Wed, 1 May 2024 13:05:50 +0800 Subject: [PATCH] fix ci --- src/platform/linux.rs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/platform/linux.rs b/src/platform/linux.rs index 67be40269..d528b8027 100644 --- a/src/platform/linux.rs +++ b/src/platform/linux.rs @@ -780,7 +780,7 @@ pub fn check_super_user_permission() -> ResultType { ); let arg; if Path::new(&file).is_file() { - arg = &file; + arg = file.as_str(); } else { arg = "echo"; } @@ -1027,8 +1027,13 @@ mod desktop { fn get_display_xauth_xwayland(&mut self) { let tray = format!("{} +--tray", crate::get_app_name().to_lowercase()); for _ in 0..5 { - let display_proc = - vec![XWAYLAND, IBUS_DAEMON, GNOME_GOA_DAEMON, PLASMA_KDED, &tray]; + let display_proc = vec![ + XWAYLAND, + IBUS_DAEMON, + GNOME_GOA_DAEMON, + PLASMA_KDED, + tray.as_str(), + ]; for proc in display_proc { self.display = get_env("DISPLAY", &self.uid, proc); self.xauth = get_env("XAUTHORITY", &self.uid, proc); @@ -1134,7 +1139,7 @@ mod desktop { PLASMA_KDED, XFCE4_PANEL, SDDM_GREETER, - &tray, + tray.as_str(), ]; for proc in display_proc { self.xauth = get_env("XAUTHORITY", &self.uid, proc);