开发者

Problem in creating .desktop file, CentOS

开发者 https://www.devze.com 2023-01-03 07:33 出处:网络
Hi I have created XYZ.desktop file. And the code for that desktop file is given below XYZ.desktop Version=1.0

Hi I have created XYZ.desktop file. And the code for that desktop file is given below

XYZ.desktop

Version=1.0
Encoding=UTF-8
Name=XYZ
GenericName=Generic Piece Of Software
Exec=startXYZ
Icon=/usr/local/XYZ/XYZ.png
#Categories=Network;InstantMessaging;
StartupNotify=true
Type=Application
Terminal=false
Name[en_US]=XYZ

startXYZ

#!/bin/sh
sh "/usr/local/XYZ/Installer"

If I run the start startXYZ file using then it launches application but If I double click on .desktop file it doesnot open the application. The same file worked fine in Fedora but not working in CentOS. There is no file missing.

Can anyone 开发者_高级运维please guide me what may be the problem for launching .desktop file

Thanks Sunil Kumar Sahoo


Is startXYZ located in your $path?

Do you have [Desktop Entry] at the top of XYZ.desktop?

0

精彩评论

暂无评论...
验证码 换一张
取 消