mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-13 19:47:17 +00:00
Merge pull request #3902 from fufesou/feat/linux_virtual_display
Feat/linux virtual display (headless linux)
This commit is contained in:
@@ -512,10 +512,11 @@ pub fn get_error() -> String {
|
||||
#[cfg(target_os = "linux")]
|
||||
{
|
||||
let dtype = crate::platform::linux::get_display_server();
|
||||
if "wayland" == dtype {
|
||||
if crate::platform::linux::DISPLAY_SERVER_WAYLAND == dtype
|
||||
{
|
||||
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