emacs --version:24.4.1
emacsclient --version:24.4
fcitx --version:4.2.8.5
uname -a:Linux localhost 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u2 (2016-01-02) x86_64 GNU/Linux
gnome 终端 --version:3.14.1
1.在gnome-ternimal中,
$ emacs -q --daemon
$ emacsclient -c # fcitx available in new frame
2.将emacs守护进程添加到crontab
$ crontab -e -u user1
@reboot emacs -q -daemon
在 gnome 终端中,
$ emacsclient -c #fcitx NOT work in new frame
3.在终端中,fcitx可用,包括emacsclient -t
。
4.在GUI应用程序中,fcitx也是可用的,例如来自emacs24.desktop、libreoffice、chrome的emacs。
最佳答案
必须将 im env 添加到 crontab emacs 任务,就像:
@reboot XMODIFIERS="@im=fcitx" emacs --deamon 1 2>/dev/null
关于linux - fcitx 不适用于 emacsclient --create-frame,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34849162/