[Window Manager] deepin如何在shell运行desktop文件
Tofloor
poster avatar
bigben446
deepin
2025-05-04 22:10
Author

dde-open ./XnView.desktop Deepin 的默认命令,但需要 Deepin 桌面服务正常
gtk-launch XnView 需要 .desktop 文件安装在系统应用目录

上面两个方法都不行

Reply Favorite View the author
All Replies
兰蔻
deepin
2025-05-04 23:21
#1

安装 dex :
sudo apt install dex

运行.desktop 文件:

dex 路径/xxx.desktop

Reply View the author
DebuggerX
deepin
2025-05-05 21:33
#2

xdg-open

Reply View the author
bigben446
deepin
2025-05-06 19:40
#3
DebuggerX

xdg-open

不行,是用记事本打开的desktop文件

Reply View the author
[^_^]
deepin developers team
2025-05-07 09:59
#4

desktop 的执行实质上依赖于文件内的 Exec 字段值,所以可以直接在命令行里输入 Exec 字段值内容进行启动。

Reply View the author
bigben446
deepin
2025-05-07 18:59
#5
[^_^]

desktop 的执行实质上依赖于文件内的 Exec 字段值,所以可以直接在命令行里输入 Exec 字段值内容进行启动。

谢谢,那个我知道

主要是这个bug有感而发的

https://bbs.deepin.org/zh/post/286349

有个命令可以在shell里面运行desktop文件,也许就能有报错信息了

Reply View the author