mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-13 19:47:17 +00:00
@@ -511,11 +511,13 @@ pub fn get_error() -> String {
|
||||
#[cfg(not(any(feature = "cli")))]
|
||||
#[cfg(target_os = "linux")]
|
||||
{
|
||||
let dtype = crate::platform::linux::get_display_server();
|
||||
if "wayland" == dtype {
|
||||
let (username, dtype) = crate::platform::linux::get_user_and_display_server();
|
||||
if crate::platform::linux::DISPLAY_SERVER_WAYLAND == dtype
|
||||
&& !crate::platform::linux::is_gdm_user(&username)
|
||||
{
|
||||
return crate::server::wayland::common_get_error();
|
||||
}
|
||||
if dtype != "x11" {
|
||||
if dtype != crate::platform::linux::DISPLAY_SERVER_X11 {
|
||||
return format!(
|
||||
"{} {}, {}",
|
||||
crate::client::translate("Unsupported display server".to_owned()),
|
||||
|
||||
Reference in New Issue
Block a user