fcitx.el icon indicating copy to clipboard operation
fcitx.el copied to clipboard

cannot work with fcitx5

Open tcstory opened this issue 3 years ago • 4 comments

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))

tcstory avatar Jul 30 '22 10:07 tcstory

这是来自QQ邮箱的假期自动回复邮件。您好,我已收到您的邮件。

yangdaweihit avatar Jul 30 '22 10:07 yangdaweihit

  (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)

amosbird avatar Oct 13 '22 05:10 amosbird

这是来自QQ邮箱的假期自动回复邮件。您好,我已收到您的邮件。

yangdaweihit avatar Oct 13 '22 05:10 yangdaweihit

(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!

sbwcwso avatar Nov 17 '22 01:11 sbwcwso