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
This commit is contained in:
Jertzukka 2023-12-11 10:11:07 +02:00 committed by GitHub
parent 87a9508fdd
commit 801c3ab966
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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