存在两个问题: 1. 双击xmind文件只能打开应用,无法直接在应用中打开文件 2. xmind文件不显示应用程序图标
本人环境Manjaro 解决方法如下,修改PKGBUILD
prepare() {
sed -i '/^Exec=/cExec=electron5 /usr/share/XMind2020/app.asar %U' "$srcdir/usr/share/applications/XMind.desktop"
}
package() {
cd "$srcdir/usr/share"
find . -type f -exec install -Dm644 {} "$pkgdir/usr/share/{}" \;
mkdir -p ${pkgdir}/usr/share/mime/packages
install -Dm644 "$srcdir/xmind.xml" "$pkgdir/usr/share/mime/packages/"
sed -i 's/xmind_file/XMind/' "$pkgdir/usr/share/mime/packages/xmind.xml"
sed -i '/xml:lang/d' "$pkgdir/usr/share/mime/packages/xmind.xml"
cd "$srcdir/opt/XMind/resources"
install -Dm644 app.asar "$pkgdir/usr/share/XMind2020/app.asar"
cd app.asar.unpacked
find . -type f -exec install -Dm644 {} "$pkgdir/usr/share/XMind2020/app.asar.unpacked/{}" \;
}
Pinned Comments