fix build

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou committed 2023-04-03 13:16:58 +08:00
1 parent ee3ac31083
commit 571c1df5c4
4 files changed
+6 -17

No files matched your search

+1 -2
View File
@@ -511,9 +511,8 @@ pub fn get_error() -> String {
#[cfg(not(any(feature = "cli")))]
#[cfg(target_os = "linux")]
{
let (username, dtype) = crate::platform::linux::get_user_and_display_server();
let dtype = crate::platform::linux::get_display_server();
if crate::platform::linux::DISPLAY_SERVER_WAYLAND == dtype
&& !crate::platform::linux::is_gdm_user(&username)
{
return crate::server::wayland::common_get_error();
}