mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
Add GDK_DEBUG as default environment variable for linux
Since gtk 4.14, we need to define driver to run OpenGL as (gtk's issue)[https://gitlab.gnome.org/GNOME/gtk/-/issues/6589]
This commit is contained in:
@ -239,6 +239,8 @@ pub const GlobalState = struct {
|
|||||||
self.logging = .{ .disabled = {} };
|
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
|
// 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,
|
// 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
|
// maybe once for logging) so for now this is an easy way to do
|
||||||
|
Reference in New Issue
Block a user