Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

anki-bin: input methods do not work #147989

Open
telotortium opened this issue Nov 30, 2021 · 8 comments
Open

anki-bin: input methods do not work #147989

telotortium opened this issue Nov 30, 2021 · 8 comments

Comments

@telotortium
Copy link
Contributor

Describe the bug

Neither fcitx, fcitx5, nor ibus work with Anki (at least on xfce), despite working with other applications.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Add the following to /etc/nixos/configuration.nix:
  services.xserver.displayManager = {
    sddm.enable = true;
    defaultSession = "xfce";
  };
  i18n = {
    defaultLocale = "en_US.UTF-8";
    inputMethod = {
      enabled = "fcitx5";
      fcitx5.addons = with pkgs; [ fcitx5-with-addons fcitx5-chinese-addons ];
    };
  };
  1. Install anki-bin package in user profile.
  2. Start xfce. Confirm fcitx5 is running.
  3. Start Anki
  4. Start typing in a typed-answer field.

Expected behavior

fcitx5 input method is used, allowing me to type Chinese characters.

Additional context

buildFHSUserEnv may be responsible - perhaps a Qt5 library from the system needs to be present? Not really sure how FHS services interact with IMEs.

I've tried setting both QT_IM_MODULE=fcitx and QT_IM_MODULE=ibus (since fcitx5 should have an ibus compatibility layer) without any effect.

Notify maintainers

@Atemu

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.81, NixOS, 21.05.4394.2553aee74fe (Okapi)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.16`
 - channels(rmi1): `"nixos-22.05pre333986.73369f8d086, nixpkgs-22.05pre333986.73369f8d086"`
 - channels(root): `"nixos-21.05.4394.2553aee74fe, nixos-unstable-21.11pre327669.b67e752c29f"`
 - nixpkgs: `/home/user/.nix-defexpr/channels/nixpkgs`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
@YizhePKU
Copy link

Same issue. I'm using Gnome wayland.

1 similar comment
@YizhePKU
Copy link

Same issue. I'm using Gnome wayland.

@legendofa
Copy link

I also have this issue with the kime input method.

@Atemu
Copy link
Member

Atemu commented Apr 24, 2022

I'm unsure we can do anything about this as we don't control the libraries used. I guess we could try to substitute/patch them with our own versions of the libraries.

@Atemu
Copy link
Member

Atemu commented Mar 12, 2023

QT_IM_MODULE=fcitx anki is working for me using

  i18n.inputMethod = {
    enabled = "fcitx5";
    fcitx5.addons = with pkgs; [ fcitx5-mozc ];
  };

@Atemu Atemu closed this as not planned Won't fix, can't repro, duplicate, stale Mar 12, 2023
@euank
Copy link
Member

euank commented Mar 14, 2023

Are you using anki or anki-bin?

For me, using QT_IM_MODULE=ibus + anki from anki-bin, this issue still reproduces.
anki launches, I can use it normally, but switching input methods doesn't work on its input fields, so I think this is still an issue.

@Atemu
Copy link
Member

Atemu commented Mar 15, 2023

@euank does fcitx work for you?

@Atemu Atemu reopened this Mar 15, 2023
@euank euank mentioned this issue Mar 16, 2023
11 tasks
@wiggleforlife
Copy link

Running QT_IM_MODULE=fcitx anki is working for me on Fcitx5 + KDE6 on Wayland. If I force Wayland for Anki, this also fixes fcitx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants