[Bug]选中xmind文件右键xmind打开文件未加载
Tofloor
poster avatar
HoneyGIFT
deepin
2019-01-30 19:53
Author
选中xmind文件右键xmind打开文件未加载,希望解决下
Reply Favorite View the author
All Replies
avatar
whoam1
deepin
2019-01-30 20:06
#1
Xmind在Linux系统下,文件打开为空白模板
/usr/bin/xmind
#!/bin/sh
ARCH=`uname -m`
if echo $ARCH|grep -q x86_64 ;then
  cd /usr/share/xmind/XMind_amd64/ && ./XMind "${@}"
else
  cd /usr/share/xmind/XMind_i386/  && ./XMind "${@}"
fi
exit 0
添加参数启动-- %{@} 用全部参数
/usr/share/applications/xmind.desktop
在EXEC处添加 %f 带参数启动
Reply View the author
avatar
whoam1
deepin
2019-01-30 21:22
#2
https://bbs.deepin.org/user/101846 建议重新把xmind打包一下,好解决这个问题。打开xmind文件无法加载内容。
https://bbs.deepin.org/post/172921 解决办法如楼上和此帖子。
Reply View the author
avatar
HoneyGIFT
deepin
2019-01-30 21:33
#3
https://bbs.deepin.org/post/174405
@aida 建议重新把xmind打包一下,好解决这个问题。打开xmind文件无法加载内容。
https://bbs.deepin.org/fo ...
  1. #!/bin/sh
  2. ARCH=`uname -m`
  3. if echo $ARCH|grep -q x86_64 ;then
  4.   cd /usr/share/xmind/XMind_amd64/ && ./XMind
  5. else
  6.   cd /usr/share/xmind/XMind_i386/  && ./XMind
  7. fi
  8. exit 0
Copy the Code
问题已解决,感谢。 附上原始的配置文件/usr/lib/xmind 。

Reply View the author
avatar
electricface
deepin
2019-01-30 21:48
#4
Reply View the author
Comments
jiftle
2019-02-01 06:22
帅呆啦
avatar
魔法师
deepin
2019-01-31 01:24
#5
https://bbs.deepin.org/post/174405
@aida 建议重新把xmind打包一下,好解决这个问题。打开xmind文件无法加载内容。
https://bbs.deepin.org/fo ...

这不是我回答的老贴么,不过解决方案石沉大海,大哥能将我的方案找出来我也是佩服
Reply View the author
avatar
whoam1
deepin
2019-01-31 01:53
#6
https://bbs.deepin.org/post/174405
这不是我回答的老贴么,不过解决方案石沉大海,大哥能将我的方案找出来我也是佩服 ...

能解决就是好方案,每次安装都要配置一番,不太好
Reply View the author
avatar
魔法师
deepin
2019-01-31 02:01
#7
https://bbs.deepin.org/post/174405
能解决就是好方案,每次安装都要配置一番,不太好

这就不是我的问题了,不过我自己也会使用dpkg打包功能进行打包。但是也没法上传至deepin商店啊。手动更改配置。是不太好,而且很多软件本就没有考虑打包,linux 上flatpak如果弄上xmind这软件,也是另一番风味啊。回复完我就去升级了15.9.1了。。每个软件都不一样。。
Reply View the author
avatar
蒙笛
deepin
2019-03-06 05:44
#8
本帖最后由 yuzh496 于 2019-3-5 22:28 编辑
这个是 /usr/share/applications/XMind.desktop 文件的问题,把第四行的 “ %U ” 改成 “ %f ” 就好了。

测试了一下,完美解决,期待官方解决。Xmind是通过商店安装的,需要修改/usr/bin/xmind 和/usr/share/applications/XMind.desktop中的Exec行;Xmind ZEN是下载官方包安装的,只修改/usr/share/applications/XMind ZEN.desktop就行。
Reply View the author