From 32df54921557bce8f822689ecd2e30a081beac61 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Tue, 1 Dec 2026 18:05:00 -0500 Subject: [PATCH] fixup OSK with patched GTK I am really looking forward to dropping all this on a new GTK version. --- linux/nix/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/linux/nix/default.nix b/linux/nix/default.nix index 79aab66..aa8e46d 100644 --- a/linux/nix/default.nix +++ b/linux/nix/default.nix @@ -35,6 +35,8 @@ oldDependency = pkgs.gtk3; newDependency = pkgs.gtk3.overrideAttrs (old: { patches = old.patches or [ ] ++ [ ./patches/gtk3-egl-renderable-type.patch ]; + # So the flatpak gets text-input-v3 (and with it the OSK) without our immodules.cache + mesonFlags = old.mesonFlags or [ ] ++ [ "-Dbuiltin_immodules=wayland" ]; }); } ]; @@ -60,6 +62,10 @@ unset GST_PLUGIN_SYSTEM_PATH_1_0 '' + old.postInstall; + # Our GTK's default immodules.cache path isn't in the flatpak; use the runtime's + preFixup = old.preFixup or "" + '' + gappsWrapperArgs+=(--set-default GTK_IM_MODULE_FILE /usr/lib/${pkgs.stdenv.hostPlatform.uname.processor}-linux-gnu/gtk-3.0/3.0.0/immodules.cache) + ''; # nix2flatpak swaps dropped RUNPATH entries for the runtime's libdir in place, # which would put it ahead of our patched GTK, so move GTK to the front postFixup = old.postFixup or "" + ''