diff options
author | Jertzukka <Jertzukka@gmail.com> | 2023-12-11 10:11:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-11 09:11:07 +0100 |
commit | 801c3ab966ec9b1f40d09dd50dbd5db985d52478 (patch) | |
tree | ed4cbf2762fa7ee474f3e0e400cdd07bb65a31a2 | |
parent | 87a9508fddb1656206188318365783e1a2d3e635 (diff) | |
download | VeraCrypt-801c3ab966ec9b1f40d09dd50dbd5db985d52478.tar.gz VeraCrypt-801c3ab966ec9b1f40d09dd50dbd5db985d52478.zip |
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
-rw-r--r-- | src/Main/Unix/Main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |