[deepin exploration] wine运行器打包的软件,为什么双击打不开文件,只能打开软件?
Tofloor
poster avatar
186******75
deepin
2024-04-01 13:25
Author

wine运行器打包的软件,为什么双击打不开文件,只能打开软件?然后用软件里的打开可以打开,用拖拉进软件也可以打开,衣请大佬指点。打包有的专业打包。右键已设置默打开的

#!/usr/bin/env xdg-open
[Desktop Entry]
Encoding=UTF-8
Type=Application
X-Created-By=qsls
Categories=Network;
Icon=/opt/apps/spark-deepin-suwell/entries/icons/hicolor/scalable/apps/spark-deepin-suwell.png
Exec="/opt/apps/spark-deepin-suwell/files/run.sh" --uri
Name=数科OFD
Comment=免费阅读odf,pdf等
MimeType=application/ofd
GenericName=spark-deepin-suwell
Terminal=false
StartupNotify=false
X-Deepin-CreatedBy=com.deepin.dde.daemon.Launcher
X-Deepin-AppID=spark-deepin-suwell

Reply Favorite View the author
All Replies
神末shenmo
deepin
Spark-App
2024-04-01 13:46
#1

Exec="/opt/apps/spark-deepin-suwell/files/run.sh" --uri %U


记得投递下~

Reply View the author
186******75
deepin
2024-04-01 14:22
#2
神末shenmo

Exec="/opt/apps/spark-deepin-suwell/files/run.sh" --uri %U


记得投递下~

加上参数还是不行。

重新打包
截图_选择区域_20240401142036.png

生成的

#!/usr/bin/env xdg-open
[Desktop Entry]
Encoding=UTF-8
Type=Application
X-Created-By=qsls
Categories=Office;
Icon=/opt/apps/spark-deepin-suwell/entries/icons/hicolor/scalable/apps/spark-deepin-suwell.png
Exec="/opt/apps/spark-deepin-suwell/files/run.sh" --uri %U
Name=数科OFD
Comment=阅读odf文件
MimeType=application/ofd
GenericName=spark-deepin-suwell
Terminal=false
StartupNotify=false
X-Deepin-CreatedBy=com.deepin.dde.daemon.Launcher
X-Deepin-AppID=spark-deepin-suwell

Reply View the author
忘记、过去
deepin
2024-04-01 14:31
#3

%U %u %F %f 这几个参数都试试,不清楚应该用哪个

Reply View the author
Ziggy
deepin
2024-04-01 15:42
#4

"uri"应该是URL或者url才对,不过freedesktop中一般会以%U、%u等替

Reply View the author
186******75
deepin
2024-04-01 15:50
#5

Exec="/opt/apps/spark-deepin-suwell/files/run.sh" --uri %U

uri是wine运行器自然生成的

Reply View the author
sgb76
deepin
2024-04-27 23:11
#6

试试Exec="/opt/apps/spark-deepin-suwell/files/run.sh" -f %f

Reply View the author