Centos 6.6 创建桌面图标

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Name=PhpStorm
Icon=/root/Downloads/PhpStorm/bin/webide.png
Exec="/root/Downloads/PhpStorm/bin/phpstorm.sh" %f
Comment=Develop with pleasure!
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-phpstorm 

#!/usr/bin/env xdg-open  这句话一定要有  参考

http://blog.chinaunix.net/uid-26495963-id-3409921.html

http://blog.163.com/sweetlife_112/blog/static/115931720103147453615/

Exec代表应用程序的位置【视实际情况修改】

Icon代表应用程序图标的位置【视实际情况修改】

Terminal的值为false表示启动时不启动命令行窗口,值为true表示启动命令行窗口【建议为false】

命名一定是以 “.desktop”(不包括引号) 结尾,然后将这个文件放在桌面文件夹里面  例如:我的是 /root/Desktop

最后加可执行权限 就可以了

参考网站:http://www.2cto.com/os/201406/306618.html

原文地址:https://www.cnblogs.com/lazyx/p/4749168.html