diff --git a/src/main_ghostty.zig b/src/main_ghostty.zig index ff38b800d..06606eb90 100644 --- a/src/main_ghostty.zig +++ b/src/main_ghostty.zig @@ -239,6 +239,8 @@ pub const GlobalState = struct { self.logging = .{ .disabled = {} }; } + // We need to export GDK_DEBUG to run on wayland after gtk 4.14 + if (builtin.target.os.tag == .linux) _ = internal_os.setenv("GDK_DEBUG", "opengl,gl-disable-gles"); // I don't love the env var name but I don't have it in my heart // to parse CLI args 3 times (once for actions, once for config, // maybe once for logging) so for now this is an easy way to do