前言 Mendeley是一款论文管理软件,可以跨平台同步使用。
在Manjaro上发现Mendeley无法输入中文,进行批注。 查找原因是Mendeley使用了自己的QT库,没有对fcitx的支持。
解决办法 网上查到了基本上都是添加/opt/mendeleydesktop/lib/mendeleydesktop/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so
方法大同小异,可以参考这个博客 有的是从github上自己下载放里面,有的是用locate libfcitxplatforminputcontextplugin.so
后进行本地的软链接。但是这些方法在我这都失效了。
后续发现一个帖子 ,说是Mendeley版本升级后,对Qt的依赖版本也升级了,要下载对应的版本。Mendeley 1.18-1.191使用了Qt5.10.1的库,但是进行操作后还是无法输入中文。。
最后在AUR中搜到了一个AUR : mendeleydesktop-bundled-fcitx.git ,尝试了下,ok了。
查看了它的PKGBUILD,发现安装的不止上面方面说的那个库,还包括了/opt/mendeleydesktop/lib/qt/libFcitxQt5DBusAddons.so.1.0
这个包,可以从github 上下载。
PKGBUILD 具体的PKGBUILD如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 pkgname =mendeleydesktop-bundled-fcitxpkgver =1.19.4pkgrel =1pkgdesc ="mendeleydesktop fcitx input method support" arch=('x86_64' ) url ="http://yinflying.top/2017/09/727" license=('GPL' ) depends=('mendeleydesktop-bundled' ) makedepends=('git' ) # 'bzr' , 'git' , 'mercurial' or 'subversion' provides=("${pkgname} " ) conflicts=("${pkgname} " ) replaces=() backup=() options=() install= source=("https://github.com/yinflying/BlogSource/raw/master/lib-fcitx-plugin/arch-qt5.10.1/libFcitxQt5DBusAddons.so.1.0" "https://github.com/yinflying/BlogSource/raw/master/lib-fcitx-plugin/arch-qt5.10.1/libfcitxplatforminputcontextplugin.so" ) noextract=() md5sums=('SKIP' 'SKIP' ) package() { install -Dm755 "$srcdir /libfcitxplatforminputcontextplugin.so" "$pkgdir /opt/mendeleydesktop/lib/mendeleydesktop/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so" install -Dm755 "$srcdir /libFcitxQt5DBusAddons.so.1.0" "$pkgdir /opt/mendeleydesktop/lib/qt/libFcitxQt5DBusAddons.so.1.0" cd "$pkgdir /opt/mendeleydesktop/lib/qt" ln -s libFcitxQt5DBusAddons.so.1.0 libFcitxQt5DBusAddons.so.1 ln -s libFcitxQt5DBusAddons.so.1 libFcitxQt5DBusAddons.so }