appium-desktop 命令行启动日志会报:
cmd@TR:~/AppImage$ appium-desktop-1.6.2-x86_64.AppImage
Gtk-Message: 16:03:12.974: Failed to load module "unity-gtk-module"
Gtk-Message: 16:03:12.979: Failed to load module "unity-gtk-module"
Warning: Accessing PropTypes via the main React package is deprecated, and will be removed in React v16.0. Use the latest available v15.* prop-types package from npm instead. For info on usage, compatibility, migration and more, see https://fb.me/prop-types-docs
Warning: Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class v15.* is available on npm as a temporary, drop-in replacement. For more info see https://fb.me/react-create-class
[Appium] Welcome to Appium v1.8.1
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[Appium] Welcome to Appium v1.8.1
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
安装的XMind 命令行启动也会报:
cmd@TR:/opt/xmind/XMind_amd64$ XMind
Gtk-Message: 16:16:57.274: Failed to load module "unity-gtk-module"
Gtk-Message: 16:16:57.525: Failed to load module "unity-gtk-module"
搜 ubuntu 18.04 failed to load module unity-gtk-module 搜到
发现有提到unity-gtk3-module 于是:
尝试安装 unity-gtk2-module unity-gtk3-module
cmd@TR:/opt/xmind/XMind_amd64$ sudo apt install unity-gtk2-module unity-gtk3-module
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
将会同时安装下列软件:
libunity-gtk2-parser0 libunity-gtk3-parser0 unity-gtk-module-common
下列【新】软件包将被安装:
libunity-gtk2-parser0 libunity-gtk3-parser0 unity-gtk-module-common unity-gtk2-module unity-gtk3-module
升级了 0 个软件包,新安装了 5 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
再行尝试启动上述appium-desktop或xmind完美解决 failed to load module unity-gtk-module 命令行启动的话启动日志不会报该错了。
另外,加说些内容 目前18.04 解压zip形式安装的xmind8
无法正常生成启动desktop文件,需要自己添加.desktop 。
我是个人习惯安装到了/opt/目录下,unzip xmind-pro-8-linux.zip -d /opt/xmind。
sudo gedit /usr/share/applications/xmind.desktop 或者 ~/.local/share/applications 都可以。
内容:
[Desktop Entry]
Version = 1.0
Encoding=UTF-8
Type=Application
Name=Xmind
Comment=Xmind
Path=/opt/xmind/XMind_amd64
Exec=/opt/xmind/XMind_amd64/XMind
Icon=/opt/xmind/XMind_6_icon.png
Terminal=false
Categories=Application
StartupWMClass=XMind
注意给下权限sudo chmod 755 xmind.desktop
自己搜索 xmind icon 128x128 找一个差不多的放入路径/opt/xmind/ 即可。