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

WizNotePlus 无法使用 Fctix 时的解决办法 #128

Open
choora opened this issue Jul 19, 2020 · 9 comments
Open

WizNotePlus 无法使用 Fctix 时的解决办法 #128

choora opened this issue Jul 19, 2020 · 9 comments
Labels
bug Something isn't working tip Good tips sharing

Comments

@choora
Copy link

choora commented Jul 19, 2020

使用 WizNotePlus 的 Linux 客户端时,可能会发生无法启动 Fcitx(比如搜狗输入法的 Linux 版本,就是基于 Fcitx)从而无法使用中文输入法的情况. 如果出现了这个问题,可以简单地通过重新打包 *.AppImage 包来解决.

解压 *.AppImage

从 Release 页下载 Linux 客户端,以 2.8.1 版本为例,文件名默认为 WizNotePlus-linux-v2.8.1.AppImage.

chmod +x WizNotePlus-linux-v2.8.1.AppImage # 保证可执行权限
./WizNotePlus-linux-v2.8.1.AppImage --appimage-extract # 默认解压至 ./squashfs-root/

复制 libfcitxplatforminputcontextplugin.so

libfcitxplatforminputcontextplugin.so 的位置在 /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/(以深度操作系统为例),复制到 squashfs-root/usr/plugins/platforminputcontexts/并加上可执行权限(默认是没有可执行权限的)即可.

sudo cp /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so squashfs-root/usr/plugins/platforminputcontexts/
chmod +x squashfs-root/usr/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so

打包 *.AppImage

打包 AppImage 使用 AppImageKit,文件名默认为 appimagetool-x86_64.AppImage,保证可执行权限后,可以把 squashfs-root/ 内容重新打包:

./appimagetool-x86_64.AppImage squashfs-root/

默认重新打包后的文件名为 WizNote-x86_64.AppImage.

注意

  • 从 GitHub Release 页下载文件的时候,可以使用在线工具 gh-proxy 提高下载速度.
  • 重新打包后的程序,最好关闭自动检查更新的选项,因为程序被修改后,与最新版本有差异,每次运行时会提示有版本更新.(问题已修复)
@altairwei altairwei added the bug Something isn't working label Jul 19, 2020
@altairwei
Copy link
Owner

重新打包 AppImage 应该不会影响自动更新检查,你确定 v2.8.1 重新打包后也有这个问题吗?之前重复弹出升级提醒是 v2.8.0-beta.2 的 BUG,见 #96

@altairwei altairwei added the tip Good tips sharing label Jul 19, 2020
@choora
Copy link
Author

choora commented Jul 19, 2020

重新打包 AppImage 应该不会影响自动更新检查,你确定 v2.8.1 重新打包后也有这个问题吗?之前重复弹出升级提醒是 v2.8.0-beta.2 的 BUG,见 #96

我在另一台机器的 2.8.0 测试了,没有这个问题了。

@altairwei
Copy link
Owner

能否提供一下你的操作系统信息

@choora
Copy link
Author

choora commented Jul 19, 2020

测试过的机器都是 Deepin GNU/Linux 15.11.

@altairwei
Copy link
Owner

测试过的机器都是 Deepin GNU/Linux 15.11.

我几个月前也用过 Deepin 15.11 ,但我 fcitx 用起来没啥问题,也能在 WizNotePlus 中输入。

@kuqu00
Copy link

kuqu00 commented Jul 30, 2020

2.8.1 fcitx中文无法输入
操作系统是archlinux

@altairwei altairwei pinned this issue Jul 30, 2020
@grassvalley
Copy link

wiznoteplus 2.8.1 的appimage中已经包含了一个libfcitxplatforminputcontextplugin.so文件,看文件大小与深度20系统自带的不一样,并且没有可执行权限。我按照上述方法复制系统自带的so文件到指定目录,并且重新打包生成了appimage文件。
仍然无法使用fcitx输入法录入中文。

@LIPUU
Copy link

LIPUU commented Feb 20, 2021

照上述方法复制系统自带的so文件到指定目录,并且重新打包生成了appimage文件。
仍然无法使用fcitx输入法录入中

俺也一样

@altairwei
Copy link
Owner

wiznoteplus 2.8.1 的appimage中已经包含了一个libfcitxplatforminputcontextplugin.so文件,看文件大小与深度20系统自带的不一样,并且没有可执行权限。我按照上述方法复制系统自带的so文件到指定目录,并且重新打包生成了appimage文件。
仍然无法使用fcitx输入法录入中文。

v2.8.1 打包的 fcitx-qt5 版本为 1.1.1 ,我测试了下确实在 deepin 20.1 上不工作。新版本 WizNotePlus 将会打包来源于 Ubuntu 仓库的 fcitx-qt5 1.2.4 ,这个在 deepin 20.1 上实测是没问题的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tip Good tips sharing
Projects
None yet
Development

No branches or pull requests

5 participants