解决 Arch/Manjaro Linux AUR 的 MindMaster 无法输入中文和登录的问题

Arch 同时被 3 个专栏收录
16 篇文章 0 订阅
13 篇文章 0 订阅
1 篇文章 0 订阅

解决 Arch/Manjaro Linux AUR 的 MindMaster 无法输入中文和登录的问题

MindMaster 的 AUR 包 的 PKGBUILD

# Maintainer: Shen ZhongLi <szl921818@gmail.com>
#mindmaster 中文版

pkgname=mindmaster-cn
pkgver=7.2
pkgrel=1
arch=('x86_64')
options=(!strip)
conflicts=("mindmaster")
pkgdesc="多功能,高颜值,易使用的专业思维导图软件"
license=('Commercial')
url="https://www.edrawsoft.cn/mindmaster/"
source_x86_64=("https://www.edrawsoft.cn/2download/mindmaster-7-amd64-cn.deb")
sha256sums_x86_64=('d098c54122ac1155ea4e287e16c12e529020437e5f83d2e1707b2ee123300c70')

package() {	
    cd "${pkgdir}"
    tar xf "${srcdir}/data.tar.xz"
    
    mkdir -p ${pkgdir}/usr/bin
    mkdir -p ${pkgdir}/usr/share/icons
    mkdir -p ${pkgdir}/usr/share/icons/hicolor/scalable/mimetypes
    mkdir -p ${pkgdir}/usr/share/mime/packages
    
    ln -f -s /opt/MindMaster-7/MindMaster "${pkgdir}/usr/bin/mindmaster"
    
    ln -f -s /opt/MindMaster-7/mindmaster.png "${pkgdir}/usr/share/icons/mindmaster.png"
    
    ln -f -s /opt/MindMaster-7/emmx.svg "${pkgdir}/usr/share/icons/hicolor/scalable/mimetypes/emmx.svg"
    
    ln -f -s /opt/MindMaster-7/mindmaster.xml "${pkgdir}/usr/share/mime/packages/mindmaster.xml"
    
    cp /usr/lib/qt/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so "${pkgdir}/opt/MindMaster-7/plugins/platforminputcontexts/"
    
}

MindMaster 中国官网的版本

https://www.edrawsoft.cn/download/mindmaster/
# 实际已经更新到 8.0.2
https://www.edrawsoft.cn/2download/x86_64/mindmaster_8.0.2_cn_x86_64.deb

克隆 mindmaster-cn 仓库

git clone https://aur.archlinux.org/mindmaster-cn.git 

修改 PKGBUILD 为以下内容

# Maintainer: Shen ZhongLi <szl921818@gmail.com>
# Maintainer: taotieren <admin@taotieren.com>
#mindmaster 中文版

pkgname=mindmaster-cn
pkgver=8.0.2
pkgrel=1
arch=('x86_64')
options=(!strip)
conflicts=("mindmaster")
pkgdesc="多功能,高颜值,易使用的专业思维导图软件"
license=('Commercial')
url="https://www.edrawsoft.cn/mindmaster/"
source_x86_64=("https://www.edrawsoft.cn/2download/x86_64/mindmaster_8.0.2_cn_x86_64.deb")
sha256sums_x86_64=('20c475284cddc0d45c87c1d75016ab395b4b4842c01361269d4b81da23c45b47')

package() {	
    cd "${pkgdir}"
    tar xf "${srcdir}/data.tar.xz"
    
    mkdir -p ${pkgdir}/usr/bin
    mkdir -p ${pkgdir}/usr/share/icons
    mkdir -p ${pkgdir}/usr/share/icons/hicolor/scalable/mimetypes
    mkdir -p ${pkgdir}/usr/share/mime/packages
    
    ln -f -s /opt/MindMaster-8/MindMaster "${pkgdir}/usr/bin/mindmaster"
    
    ln -f -s /opt/MindMaster-8/mindmaster.png "${pkgdir}/usr/share/icons/mindmaster.png"
    
    ln -f -s /opt/MindMaster-8/emmx.svg "${pkgdir}/usr/share/icons/hicolor/scalable/mimetypes/emmx.svg"
    
    ln -f -s /opt/MindMaster-8/mindmaster.xml "${pkgdir}/usr/share/mime/packages/mindmaster.xml"
    
#    cp /usr/lib/qt/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so "${pkgdir}/opt/MindMaster-8/plugins/platforminputcontexts/"
    
}

使用 makepkg 编译测试并安装

安装前请先清理 MindMaster 旧版本的缓存文件。

rm -rf ~/.cache/Edraw/MindMaster
rm -rf ~/.local/share/Edraw/MindMaster

安装 MindMaster

makepkg -si

如果编译打包速度较慢,可以参看这篇博客来提升编译打包的速度

# Arch/Manjaro Linux 启用 `.pkg.tar.zst` 打包格式
https://blog.csdn.net/taotieren/article/details/107008658

MindMaster 使用 Fcitx 输入中文

Arch/Manjaro Linux 使用 Fcitx 输入法进行中文输入测试

安装完成后修改 MindMaster 渲染方式

MindMaster 渲染方式

如果修改渲染方式还是无法登录 MindMaster 账户的话,请重启电脑或者注销后再登录。

编译好的 MindMaster 包。已设置成粉丝下载 懒人专用

AUR 上提交了新的 mindmaster_cn

# AUR mindmaster_cn 
https://aur.archlinux.org/packages/mindmaster_cn/
# install mindmaster_cn
yay -S mindmaster_cn

GitHub 上的仓库地址

https://github.com/taotieren/arch_aur/tree/mindmaster_cn

标签及发行地址

https://github.com/taotieren/arch_aur/tree/v8.5.2-8
https://github.com/taotieren/arch_aur/releases/tag/v8.5.2-8

mindmaster 8.0.2 登录有问题,请更新到 8.0.3

使用 debtap 重新对 mindmaster 8.0.3 打包后可以登录

debtap打包配置文件

debtap  mindmaster_8.0.3_cn.x86_64.deb  
==> Extracting package data...
==> Fixing possible directories structure differencies...
==> Generating .PKGINFO file...

:: Enter Packager name:
taotieren <admin@taotieren.com>

:: Enter package license (you can enter multiple licenses comma separated):


*** Creation of .PKGINFO file in progress. It may take a few minutes, please wait...

==> Checking and generating .INSTALL file (if necessary)...

:: If you want to edit .PKGINFO and .INSTALL files (in this order), press (1) For vi (2) For nano (3) For default editor (4) For a custom editor or any other key to continue: 
4
:: Enter command for running custom editor: kate

==> Generating .MTREE file...

==> Creating final package...
==> Package successfully created!
==> Removing leftover files...

.PKGINFO

pkgname = mindmaster
pkgver = 8.0.3-1
pkgdesc = Mind Mapping Tool.
url = https://www.edrawsoft.cn
builddate = 1597336641
packager = taotieren <admin@taotieren.com>
arch = x86_64
size = 330107299
license = 

.INSTALL

post_install() {
	chmod +x /opt/MindMaster-8/MindMaster
	ln -s /opt/MindMaster-8/MindMaster /usr/bin/mindmaster
    ln -s /opt/MindMaster-8/mindmaster.png /usr/share/icons/mindmaster.png
    ln -s /opt/MindMaster-8/emmx.svg /usr/share/icons/hicolor/scalable/mimetypes/emmx.svg
    ln -s /opt/MindMaster-8/mindmaster.xml /usr/share/mime/packages/mindmaster.xml
}

post_upgrade() {
	post_install
}

post_remove() {
	rm /usr/bin/mindmaster
    rm /usr/share/icons/mindmaster.png
    rm /usr/share/icons/hicolor/scalable/mimetypes/emmx.svg
    rm /usr/share/mime/packages/mindmaster.xml

}

安装前请先清理 MindMaster 旧版本的缓存文件。

rm -rf ~/.cache/Edraw/MindMaster
rm -rf ~/.local/share/Edraw/MindMaster

硬核的解决 亿图 软件在 Linux 下无法登录的方式

此方式由这位博主提供:

https://blog.csdn.net/weixin_41421421/article/details/108468265
  1. 在启动 mindmaster 后进入主页面,如图所示:
    mm 主页面

  2. 单击 登录 ,会出现如图所示的界面,这个时候就需要断开网络链接断开网络链接断开网络链接。你没看错就是 断开网络链接(是不是有那么一点破解软件那味了,X雾),会显示几秒钟下面的界面,过几秒就会变成空白,需要手续够快的断网。使其卡在这个页面(正版软件的受害者。X):
    mm login

  3. 断开网络链接 后在登录界面输入你自己的帐号和密码。可以先到官网在线编辑里面确认帐号密码有没有错。然后 恢复网络连接
    mm 卡网络链接

  4. 再点登录它就登录成功了。(正版软件的受害者。X)
    mm 登录成功

打包好的 MindMaster 8.0.3 懒人专用

工峰仓库下载

下载速度满速,下载比较快。

git clone https://git.code.tencent.com/taotieren/AUR_mindmaster-cn.git

解决打包过程中文 UTF-8 转换错误

使用 LC_CTYPE 强制指定中文语言环境

export LC_CTYPE="zh_CN.UTF-8"

重写 PKGBUILD

# Maintainer: Shen ZhongLi <szl921818@gmail.com>
# Maintainer: taotieren <admin@taotieren.com>
#mindmaster 中文版

pkgname=mindmaster_cn
_pkgname=MindMaster-8
_softname=mindmaster
pkgver=8.5.2
pkgrel=9
arch=('x86_64')
options=(!strip)
conflicts=("mindmaster" "mindmaster-cn")
replaces=('mindmaster-cn')
pkgdesc="多功能,高颜值,易使用的专业思维导图软件"
license=('Commercial')
url="https://www.edrawsoft.cn/mindmaster/"
source_x86_64=("https://www.edrawsoft.cn/2download/x86_64/${_softname}_${pkgver}_cn.${arch}.deb")
sha256sums_x86_64=('2cda609b477d69fec0bdd8a10a21511f9d1c4fc6cfab2c3789e7cd58c6ff5991')
source=("${_softname}.desktop"
        "${_softname}")
sha256sums=('a090cb4f1ad939ddbd44f8cc6d2fc0caa65bccbee4daa7abe2a36b4866fc8856'
            '7bd6592bb4292311bae21fba8af4f4db6b22fe90ab679df9bad3213aa3e17ae5')
            
prepare() {
    ar -x *.deb
	mkdir -p ${pkgname}
    tar -xf "${srcdir}/data.tar.xz" --xattrs-include='*' --numeric-owner -C "${pkgname}"
}

package() {	
    export LC_CTYPE="zh_CN.UTF-8"
    mv  ${srcdir}/${pkgname}/* ${pkgdir}
    
    install -dm644  "${pkgdir}/usr/share/pixmaps/" \
                    "${pkgdir}/usr/share/icons/hicolor/scalable/mimetypes/" \
                    "${pkgdir}/usr/share/mime/packages/" \
                    "${pkgdir}/usr/share/applications/"
   
    install -Dm755 "${srcdir}/${_softname}" "${pkgdir}/usr/bin/${_softname}"
    install -m644 "${srcdir}/${_softname}.desktop" "${pkgdir}/opt/${_pkgname}/${_softname}.desktop"
    ln -sf "/opt/${_pkgname}/${_softname}.desktop" "${pkgdir}/usr/share/applications/${_softname}.desktop"
    ln -sf "/opt/${_pkgname}/${_softname}.png" "${pkgdir}/usr/share/pixmaps/${_softname}.png"
    ln -sf "/opt/${_pkgname}/emmx.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/mimetypes/emmx.svg"
    ln -sf "/opt/${_pkgname}/${_softname}.xml" "${pkgdir}/usr/share/mime/packages/${_softname}.xml"
}

通过报错日志分析

../../3rdparty/chromium/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall 0230
Received signal 11 SEGV_MAPERR 0000000000e6
#0 0x7f4c429c30a5 <unknown>
#1 0x7f4c41704141 <unknown>
#2 0x7f4c429c343d <unknown>
#3 0x7f4c3eb0a960 <unknown>
#4 0x7f4c438cc0cb <unknown>
#5 0x7f4c438d3fc7 <unknown>
#6 0x7f4c3eb0a960 <unknown>
#7 0x7f4c3e6b3125 __clock_nanosleep_2
#8 0x7f4c3e6b8357 __GI___nanosleep
#9 0x7f4c438e51a0 <unknown>
#10 0x7f4c438e5309 <unknown>
#11 0x7f4c3eb00299 start_thread
#12 0x7f4c3e6eb053 __GI___clone
  r8: 00007f4c102815e0  r9: 00007f4c102815c0 r10: 00007f4c102815a0 r11: 00007f4c10281580
 r12: 00007f4c10281640 r13: 0000000001a19280 r14: 00007f4c10281680 r15: 00000000019f5660
  di: 0000000000000001  si: 00007f4c10281500  bp: 00007f4c10281680  bx: 00000000000000e6
  dx: 0000000000000000  ax: 0000000000000000  cx: 0000000000000010  sp: 00007f4c10281640
  ip: 00007f4c438cc0cb efl: 0000000000010202 cgf: 002b000000000033 erf: 0000000000000006
 trp: 000000000000000e msk: 0000000000000000 cr2: 00000000000000e6
[end of stack trace]
Calling _exit(1). Core file will not be generated.
../../3rdparty/chromium/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall 0230
Received signal 11 SEGV_MAPERR 0000000000e6
#0 0x7f4c429c30a5 <unknown>
#1 0x7f4c41704141 [1:17:0314/225027.502975:ERROR:adm_helpers.cc(62)] Failed to query stereo recording.
<unknown>
#2 0x7f4c429c343d <unknown>
#3 0x7f4c3eb0a960 <unknown>
#4 0x7f4c438cc0cb <unknown>
#5 0x7f4c438d3fc7 <unknown>
#6 0x7f4c3eb0a960 <unknown>
#7 0x7f4c3e6b3125 ../../3rdparty/chromium/sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall 0230
__clock_nanosleep_2
#8 0x7f4c3e6b8357 

chromium sandbox 导致的问题

查阅 chromium linux_sandboxing 部分手册

https://chromium.googlesource.com/chromium/src.git/+/51.0.2662.1/docs/linux_sandboxing.md

You can disable all sandboxing (for testing) with --no-sandbox.

即可以通过禁用 sandbox 使用

mindmaster --no-sandbox

测试登录窗口,无闪退现象。

暂时解决 mindmaster 登录窗口空白

新建 mindmaster

#!/bin/sh
/opt/MindMaster-8/MindMaster --no-sandbox

修复 mindmaster.desktop 图标链接错误

[Desktop Entry]
Name=MindMaster
Name[en_US]=mindmaster
Categories=Office;MindMap;Brainstorming;Mind;Map;
MimeType=application/x-emmx
Exec=mindmaster %U
Terminal=false
Type=Application
Icon=mindmaster.png
Encoding=UTF-8
Hidden=false
StartupNotify=false
X-Deepin-Vendor=EdrawSoft
Keywords=MindMaster;Mind;Brainstorming;Map;
Keywords[de]=MindMaster;MindMap;
Keywords[fr]=MindMaster;MindMap;
Keywords[ja]=MindMaster;MindMap;
Keywords[es]=MindMaster;Diagrama;
Keywords[zh_CN]=MindMaster;MindMap;
Keywords[zh_TW]=MindMaster;MindMap;
Comment=Mind Map Software
Comment[de]=mind map - software
Comment[fr]=Logiciel de carte
Comment[ja]=マインドマップソフト
Comment[es]=Mind Map Software
Comment[zh_CN]=思维导图软件
Comment[zh_TW]=心智圖軟件
  • 2
    点赞
  • 36
    评论
  • 0
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

打赏
文章很值,打赏犒劳作者一下
相关推荐
©️2020 CSDN 皮肤主题: 黑客帝国 设计师:白松林 返回首页

打赏

饕餮人

你的鼓励将是我创作的最大动力

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值