gtk-query-immodules-{2,3}.0 --update-cache need to be run after install new gtk im module. This can be taken as an example. This is how Fcitx4 update the im module cache file For the reference: https://svnweb.freebsd.org/ports/head/chinese/fcitx/pkg-plist?revision=495880&view=markup#l108
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=bd228175dbbab30f9a0b4f9e1565c2c286290dff commit bd228175dbbab30f9a0b4f9e1565c2c286290dff Author: Ka Ho Ng <khng@FreeBSD.org> AuthorDate: 2021-12-08 19:13:05 +0000 Commit: Ka Ho Ng <khng@FreeBSD.org> CommitDate: 2021-12-09 00:45:34 +0000 textproc/fcitx5-gtk: Update to 5.0.10 Fix not executing gtk-query-immodules-2.0/gtk-query-immodules-3.0 as well. Sponsored by: The FreeBSD Foundation PR: 260276 Approved by: ygy textproc/fcitx5-gtk/Makefile | 2 +- textproc/fcitx5-gtk/distinfo | 6 +++--- textproc/fcitx5-gtk/pkg-plist | 4 ++++ 3 files changed, 8 insertions(+), 4 deletions(-)