mirror of
https://github.com/lutris/lutris.git
synced 2026-07-30 15:15:56 -04:00
linuxdeploy-plugin-gtk's generated AppRun hook unconditionally sets GTK_THEME to "Adwaita:light/dark" with a comment that "custom themes are broken." The "broken" claim is from 2018 and is disputed in upstream #39 (open since 2023-02 with no maintainer response); the practical effect is that Lutris's AppImage looks Adwaita-ish on every host regardless of the user's actual GTK theme — visibly out of place on KDE, breaks any custom theming, and undoes whatever care the user took with their desktop. Patch the vendored hook generator so GTK_THEME is exported only when the caller explicitly opted in via APPIMAGE_GTK_THEME. The default is no override at all, letting the host's GTK_THEME (or its absence) take effect, which is what every other GTK app on the system does. The colour-scheme detection block above the override is now dead weight — it existed solely to choose between Adwaita:dark and Adwaita:light — so drop it. Each modification is annotated "LUTRIS-MOD" in the vendored script, matching the convention promised in its file header. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>