mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-06-12 21:53:14 +08:00
fix is_login_wayland
This commit is contained in:
parent
b798e7415d
commit
8d1254cf14
@ -257,8 +257,8 @@ packages:
|
|||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: cb086219bd4760a95a483cb14c1791d2a39ca5a0
|
ref: "82f9eab81cb2c7bfb938def7a1b399a6279bbc75"
|
||||||
resolved-ref: cb086219bd4760a95a483cb14c1791d2a39ca5a0
|
resolved-ref: "82f9eab81cb2c7bfb938def7a1b399a6279bbc75"
|
||||||
url: "https://github.com/Kingtous/rustdesk_desktop_multi_window"
|
url: "https://github.com/Kingtous/rustdesk_desktop_multi_window"
|
||||||
source: git
|
source: git
|
||||||
version: "0.1.0"
|
version: "0.1.0"
|
||||||
|
@ -416,9 +416,9 @@ fn get_display() -> String {
|
|||||||
|
|
||||||
pub fn is_login_wayland() -> bool {
|
pub fn is_login_wayland() -> bool {
|
||||||
if let Ok(contents) = std::fs::read_to_string("/etc/gdm3/custom.conf") {
|
if let Ok(contents) = std::fs::read_to_string("/etc/gdm3/custom.conf") {
|
||||||
contents.contains("#WaylandEnable=false")
|
contents.contains("#WaylandEnable=false") || contents.contains("WaylandEnable=true")
|
||||||
} else if let Ok(contents) = std::fs::read_to_string("/etc/gdm/custom.conf") {
|
} else if let Ok(contents) = std::fs::read_to_string("/etc/gdm/custom.conf") {
|
||||||
contents.contains("#WaylandEnable=false")
|
contents.contains("#WaylandEnable=false") || contents.contains("WaylandEnable=true")
|
||||||
} else {
|
} else {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user