在CentOS 7中双击启动shell
http://www.cocoachina.com/articles/119360 要通过双击其图标来运行脚本,您需要为其创建一个.desktop文件: [Desktop Entry] Name=My script Comment=Test hello world script Exec= / home / user / yourscript . sh Icon= / home / user / youricon . png Terminal=true Type =Application 将上述内容保存为桌面上的扩展名为.desktop的文件.将/home/user/yourscript.sh和/home/user/youricon.gif更改为脚本的路径以及您希望它分别具有的图标,然后您可以通过双击它来启动. 来源: CSDN 作者: YJ-Eden 链接: https://blog.csdn.net/sinat_25079053/article/details/103646373