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

cannot work with fcitx5 #56

Open
tcstory opened this issue Jul 30, 2022 · 4 comments
Open

cannot work with fcitx5 #56

tcstory opened this issue Jul 30, 2022 · 4 comments

Comments

@tcstory
Copy link

tcstory commented Jul 30, 2022

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))
@yangdaweihit
Copy link

yangdaweihit commented Jul 30, 2022 via email

@amosbird
Copy link

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

@yangdaweihit
Copy link

yangdaweihit commented Oct 13, 2022 via email

@sbwcwso
Copy link

sbwcwso commented Nov 17, 2022

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

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

No branches or pull requests

4 participants