diff options
author | ChaosAttractor <lostattractor@gmail.com> | 2023-01-15 00:03:43 +0800 |
---|---|---|
committer | ChaosAttractor <lostattractor@gmail.com> | 2023-01-15 00:30:31 +0800 |
commit | 4f8214adce7bcafa1e11d3021a03b115b9cdf914 (patch) | |
tree | b33c2d765439e0f6ebf51aa7f1528cfb9aa8e4b4 /pkgs/applications/networking/instant-messengers/qq | |
parent | 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf (diff) |
qq: fix input-method not work
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/qq')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/qq/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/networking/instant-messengers/qq/default.nix b/pkgs/applications/networking/instant-messengers/qq/default.nix index d74f7a0530c8a..40f68c4c5b4a4 100644 --- a/pkgs/applications/networking/instant-messengers/qq/default.nix +++ b/pkgs/applications/networking/instant-messengers/qq/default.nix @@ -17,6 +17,7 @@ , at-spi2-core , autoPatchelfHook , wrapGAppsHook +, makeWrapper }: let @@ -42,6 +43,7 @@ stdenv.mkDerivation { nativeBuildInputs = [ autoPatchelfHook wrapGAppsHook + makeWrapper dpkg ]; @@ -71,7 +73,9 @@ stdenv.mkDerivation { substituteInPlace $out/share/applications/qq.desktop \ --replace "/opt/QQ/qq" "$out/bin/qq" \ --replace "/usr/share" "$out/share" - ln -s $out/opt/QQ/qq $out/bin/qq + makeWrapper $out/opt/QQ/qq $out/bin/qq \ + --argv0 "qq" \ + --prefix GTK_IM_MODULE_FILE : "/run/current-system/sw/etc/gtk-3.0/immodules.cache" runHook postInstall ''; |