From 1da80c49db38b8906812ec6d7ad512036174872e Mon Sep 17 00:00:00 2001 From: imxyy_soope_ Date: Fri, 15 Aug 2025 20:12:15 +0800 Subject: [PATCH] fix(fcitx5/overlay): qq --- modules/i18n/fcitx5.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/modules/i18n/fcitx5.nix b/modules/i18n/fcitx5.nix index abc4c88..3faeb6b 100644 --- a/modules/i18n/fcitx5.nix +++ b/modules/i18n/fcitx5.nix @@ -107,7 +107,11 @@ lib.my.makeSwitch { lib.mergeAttrsList ( map ( - { pkg, exe }: + { + pkg, + exe, + desktop, + }: { ${pkg} = final.stdenvNoCC.mkDerivation { @@ -120,8 +124,8 @@ lib.my.makeSwitch { nativeBuildInputs = [ final.makeWrapper ]; installPhase = '' cp -r . $out - mv $out/bin/${exe} $out/bin/.${exe}-old - makeWrapper $out/bin/.${exe}-old $out/bin/${exe} --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--wayland-text-input-version=3}}" + substituteInPlace $out/share/applications/${desktop}.desktop --replace-quiet "${prev.${pkg}}" $out + wrapProgram $out/bin/${exe} --add-flags "--wayland-text-input-version=3" ''; }; } @@ -130,14 +134,17 @@ lib.my.makeSwitch { { pkg = "qq"; exe = "qq"; + desktop = "qq"; } { pkg = "vscodium"; exe = "codium"; + desktop = "codium"; } { pkg = "signal-desktop"; exe = "signal-desktop"; + desktop = "signal"; } ] )