From 801c3ab966ec9b1f40d09dd50dbd5db985d52478 Mon Sep 17 00:00:00 2001 From: Jertzukka Date: Mon, 11 Dec 2023 10:11:07 +0200 Subject: Linux: Allows GUI to launch in a Wayland-only environment (#1264) Currently we check whether the system has DISPLAY environment variable set, which is the case in a system that uses X11 natively or XWayland. This variable is not set in a system with only Wayland, so we need to also check whether WAYLAND_DISPLAY is set. Fixes: #184 --- src/Main/Unix/Main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Main/Unix/Main.cpp') diff --git a/src/Main/Unix/Main.cpp b/src/Main/Unix/Main.cpp index 39a2eaba..ffc71a8d 100644 --- a/src/Main/Unix/Main.cpp +++ b/src/Main/Unix/Main.cpp @@ -76,7 +76,7 @@ int main (int argc, char **argv) #endif #ifdef __WXGTK__ - if (!getenv ("DISPLAY")) + if (!getenv ("DISPLAY") && !getenv ("WAYLAND_DISPLAY")) forceTextUI = true; #endif -- cgit v1.2.3