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

D-Bus 功能不支持 Fcitx5 #52

Open
tsehao-hu opened this issue Apr 22, 2021 · 3 comments
Open

D-Bus 功能不支持 Fcitx5 #52

tsehao-hu opened this issue Apr 22, 2021 · 3 comments

Comments

@tsehao-hu
Copy link

至少这里的 org.fcitx.Fcitx 得改成 org.fcitx.Fcitx5 ,不然 dbus 找不到对应的 .service 文件。

然而接下来就不知道应该怎么改了,dbus 看起来不认识这个 /inputmethod

fcitx.el/fcitx.el

Lines 558 to 578 in 12dc263

(defun fcitx--activate-dbus ()
(dbus-call-method :session
"org.fcitx.Fcitx"
"/inputmethod"
"org.fcitx.Fcitx.InputMethod"
"ActivateIM"))
(defun fcitx--deactivate-dbus ()
(dbus-call-method :session
"org.fcitx.Fcitx"
"/inputmethod"
"org.fcitx.Fcitx.InputMethod"
"InactivateIM"))
(defun fcitx--active-p-dbus ()
(= (dbus-call-method :session
"org.fcitx.Fcitx"
"/inputmethod"
"org.fcitx.Fcitx.InputMethod"
"GetCurrentState")
2))

@QiangF
Copy link

QiangF commented Apr 23, 2021

也许可以试试这个 https://github.com/QiangF/imbot

@cute-jumper
Copy link
Owner

cute-jumper commented Apr 24, 2021

我没有使用 fcitx5,但看起来代码在这里 。你可以阅读一下然后改成相应的字符串来调用。

@blahgeek
Copy link
Contributor

blahgeek commented Jan 20, 2024

I submitted a PR: #58 Can you try it? Thanks

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