From 7ce957c3af7e733557b9ffbc5c9cfc28151c4f38 Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 6 Feb 2024 05:01:55 +0000 Subject: [PATCH] gtk: set GSK_RENDERER=cairo to fix a bug somewhere in moby's render stack --- hosts/modules/gui/gtk.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hosts/modules/gui/gtk.nix b/hosts/modules/gui/gtk.nix index 517fb825..3131592a 100644 --- a/hosts/modules/gui/gtk.nix +++ b/hosts/modules/gui/gtk.nix @@ -328,5 +328,12 @@ in themes.gtk-theme."${cfg.gtk-theme}" themes.icon-theme."${cfg.icon-theme}" ] ++ lib.optionals cfg.all (lib.attrValues unsortedThemes); + + # XXX(2024/02/05): set GSK_RENDERER=cairo to solve graphical edge-case on moby where some JPEGs would render as black! + # - repro by loading komikku and viewing images. some fail (particularly mangadex onimai), some work. + # - run `GSK_RENDERER=help loupe` to see options. + # - TODO: see if i can enable the `vulkan` GSK_RENDERER? + # - for more on GSK_RENDERER: + environment.variables.GSK_RENDERER = "cairo"; }; }