diff options
author | Kevin MacMartin | 2022-08-31 01:08:54 -0400 |
---|---|---|
committer | Kevin MacMartin | 2022-08-31 01:08:54 -0400 |
commit | 18625bae27ac56b0ede889552a62205235201c18 (patch) | |
tree | 1a0e8121c2a1931a017a0286eb3e95b1d353799b /gdk-backend.patch | |
parent | 93ac61c518481b673c9d0b7dda1918caa60b1d18 (diff) | |
download | aur-18625bae27ac56b0ede889552a62205235201c18.tar.gz |
Also don't incorrectly set GDK_BACKEND in mir or a tty (assuming that running in those is possible at all)
Diffstat (limited to 'gdk-backend.patch')
-rw-r--r-- | gdk-backend.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk-backend.patch b/gdk-backend.patch index 334861b8a526..16ec97ecaca7 100644 --- a/gdk-backend.patch +++ b/gdk-backend.patch @@ -8,8 +8,8 @@ index 4d045c0..3dccecb 100644 - // Set GDK_BACKEND=x11 to prevent warnings - _ = os.Setenv("GDK_BACKEND", "x11") -+ // Set GDK_BACKEND=x11 if currently unset and XDG_SESSION_TYPE isn't wayland to prevent warnings -+ if os.Getenv("GDK_BACKEND") == "" && os.Getenv("XDG_SESSION_TYPE") != "wayland" { ++ // Set GDK_BACKEND=x11 if currently unset and XDG_SESSION_TYPE is unset, unspecified or x11 to prevent warnings ++ if os.Getenv("GDK_BACKEND") == "" && (os.Getenv("XDG_SESSION_TYPE") == "" || os.Getenv("XDG_SESSION_TYPE") == "unspecified" || os.Getenv("XDG_SESSION_TYPE") == "x11") { + _ = os.Setenv("GDK_BACKEND", "x11") + } |