Created attachment 915966 [details] Screenshot of the program failing to load Apologies is this isn't too clear: ghostty on my system fails to start with the error "Unable to create GL context". ghostty itself cannot run with GLES, and sets GDK_DISABLE=gles-api to prevent GLES from loading. ghostty itself isn't seeming to set this flag, and manually setting the environment variable when running seems to fix the problem: `GDK_DISABLE=gles-api ghostty`. After chatting with someone in the discord server for ghostty, I believe this may be because ghostty is built with an older version of GTK than is required, because apparently it avoids setting the environment variable on older GTK versions.
Please share emerge --info and emerge -pvO gui-libs/gtk.
Created attachment 915992 [details] running emerge -pvO gui-libs/gtk Here is the `emerge -pvO gui-libs/gtk` command output as requested
Created attachment 915993 [details] running `emerge --info` command Here is the `emerge --info` command output as requested.
> After chatting with someone in the discord server for ghostty, I believe this > may be because ghostty is built with an older version of GTK than is required, > because apparently it avoids setting the environment variable on older GTK > versions. Actually, no, it's the other way around :) I can't reproduce this with GTK 4.14 but can reproduce it with GTK 4.16, so it seems to be a GTK 4.16 regression.
Investigated this in the Ghostty Discord. This seems to be a Ghostty bug because it doesn't check against the runtime GTK version when applying its environment variables. As a workaround before this is fixed on upstream, rebuild Ghostty after installing GTK 4.16.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee5eb81093ec8c2efea73c18815b4acca7074319 commit ee5eb81093ec8c2efea73c18815b4acca7074319 Author: sin-ack <sin-ack@protonmail.com> AuthorDate: 2025-01-08 06:54:32 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2025-01-14 15:15:51 +0000 x11-terms/ghostty: apply upstream patch for gtk version skew Link: https://github.com/ghostty-org/ghostty/pull/4783 Closes: https://bugs.gentoo.org/947584 Signed-off-by: sin-ack <sin-ack@protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/40040 Signed-off-by: Joonas Niilola <juippis@gentoo.org> ...t-gtk-move-most-version-checks-to-runtime.patch | 125 +++++++++++++++++++++ ...tty-1.0.1-r1.ebuild => ghostty-1.0.1-r2.ebuild} | 1 + 2 files changed, 126 insertions(+)