[Others] .desktop文件的文件名带空格则无法使用
Tofloor
poster avatar
马小松
deepin
2025-04-17 16:56
Author

系统环境是23.1。

安装Clash Verge Rev后,将图标发送到桌面,双击图标无法运行,但是在终端中运行clash-verge命令可以正常打开。

经过一番尝试,发现将文件名“Clash Verge.desktop”改为“clash-verge.desktop”就可以正常运行,推断是空格导致的bug。

这个问题应该是某个系统组件的健壮性不够,工程师可以排查一下。

Reply Favorite View the author
All Replies
Merlin
Super Moderator
Product Manager
2025-04-17 19:11
#1

这个是已知道问题,目前没有很好的解决办法。

Reply View the author
Merlin
Super Moderator
Product Manager
2025-04-17 21:27
#2

需要重构对于桌面应用的定义。

Reply View the author
马小松
deepin
2025-04-18 06:58
#3
Merlin

需要重构对于桌面应用的定义。

曲线救国,安装程序后,扫描application文件夹,自动去空格,然后再更新到启动器,可以吧?

Reply View the author
red_stone
deepin
2025-04-18 10:28
#4

之前一直是好好的,直到昨天系统更新后,clash verge rev 突然不能用了。估计是更新后识别带空格的路径有问题。希望系统层面进行排查!

Reply View the author
qiye
deepin
2025-04-18 10:34
#5
red_stone

之前一直是好好的,直到昨天系统更新后,clash verge rev 突然不能用了。估计是更新后识别带空格的路径有问题。希望系统层面进行排查!

这种规则还能经常发生变化?不应该呀!

Reply View the author
liujindong
deepin
2025-04-18 14:29
#6

绝了,怎么我改完名字还是不能用,还是要从终端才能启动

Reply View the author
马小松
deepin
2025-04-18 14:32
#7
liujindong

绝了,怎么我改完名字还是不能用,还是要从终端才能启动

我改的是/usr/share/applications里面的名字,然后在启动器重新发送到桌面

Reply View the author
liujindong
deepin
2025-04-24 10:41
#8
马小松

我改的是/usr/share/applications里面的名字,然后在启动器重新发送到桌面

我改的也是这个,难受,重启也没用,还是打不开,放弃,换flclash了

Reply View the author
bigben446
deepin
2025-05-04 22:03
#9
red_stone

之前一直是好好的,直到昨天系统更新后,clash verge rev 突然不能用了。估计是更新后识别带空格的路径有问题。希望系统层面进行排查!

这个一般还真是发现不了是空格的问题

Reply View the author
bigben446
deepin
2025-05-04 22:04
#10
liujindong

绝了,怎么我改完名字还是不能用,还是要从终端才能启动

[Desktop Entry]
Categories=Development;
Comment=Clash Verge Rev
Exec=/usr/bin/clash-verge %u
StartupWMClass=clash-verge
Icon=clash-verge
Name=Clash-Verge
Terminal=false
Type=Application
MimeType=x-scheme-handler/clash;
Reply View the author
马小松
deepin
2025-05-05 17:28
#11
bigben446
[Desktop Entry]
Categories=Development;
Comment=Clash Verge Rev
Exec=/usr/bin/clash-verge %u
StartupWMClass=clash-verge
Icon=clash-verge
Name=Clash-Verge
Terminal=false
Type=Application
MimeType=x-scheme-handler/clash;

改文件名,不是改文件里面的Name字段。

Reply View the author