1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

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

View File

@@ -76,7 +76,7 @@ int main (int argc, char **argv)
#endif #endif
#ifdef __WXGTK__ #ifdef __WXGTK__
if (!getenv ("DISPLAY")) if (!getenv ("DISPLAY") && !getenv ("WAYLAND_DISPLAY"))
forceTextUI = true; forceTextUI = true;
#endif #endif