fcitx.el
fcitx.el copied to clipboard
cannot work with fcitx5
the version of my emacs is 28.1
the following is my configuration
(use-package fcitx
:ensure t
:config
(fcitx-aggressive-setup)
(setq fcitx-use-dbus t)
)
and the error was reported
Warning (fcitx.el): `fcitx-remote' is not avaiable. Please check your fcitx installtion. Disable showing Disable logging
after googling, i found a solution from the post, https://kisaragi-hiu.com/why-fcitx5
here is my final configuration
(use-package fcitx
:ensure t
:config
(setq fcitx-use-dbus nil
fcitx-remote-command "fcitx5-remote")
(fcitx-aggressive-setup))
这是来自QQ邮箱的假期自动回复邮件。您好,我已收到您的邮件。
(defun fcitx5--activate-dbus ()
(dbus-call-method :session
"org.fcitx.Fcitx5"
"/controller"
"org.fcitx.Fcitx.Controller1"
"Activate"))
(advice-add #'fcitx--activate-dbus :override #'fcitx5--activate-dbus)
(defun fcitx5--deactivate-dbus ()
(dbus-call-method :session
"org.fcitx.Fcitx5"
"/controller"
"org.fcitx.Fcitx.Controller1"
"Deactivate"))
(advice-add #'fcitx--deactivate-dbus :override #'fcitx5--deactivate-dbus)
(defun fcitx5--active-p-dbus ()
(= (dbus-call-method :session
"org.fcitx.Fcitx5"
"/controller"
"org.fcitx.Fcitx.Controller1"
"State")
2))
(advice-add #'fcitx--active-p-dbus :override #'fcitx5--active-p-dbus)
这是来自QQ邮箱的假期自动回复邮件。您好,我已收到您的邮件。
(use-package fcitx :ensure t :config (setq fcitx-use-dbus nil fcitx-remote-command "fcitx5-remote") (fcitx-aggressive-setup))
This not work for me, I donot know why. I have to use ln -s to create a soft link, whick works too!