centos rhel7 linux下怎么创建桌面快捷方式

来源:互联网 发布:不用网络的游戏 编辑:程序博客网 时间:2024/06/06 00:54

[Desktop Entry] ---------快捷方式的固定格式
Version=1.0 ---------版本号,可以不写 
Name=Browser -快捷方式的名字,可以用软件的名字
GenericName=Browser -通用名称,也可以用软件名字
Comment=Browse -鼠标停留在上面时,显示的描述信息,可以不写
Exec=/path/to/your/application -[重要],是应用程序所在的路径,尽量写绝对路径.
Icon=/path/to/you/icon----快捷方式使用的图标
Terminal=false ----是否在终端下执行
Type=Application ----程序的类型
MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true ----启动通知开关
Categories=Network;WebBrowser;--把这个程序归类到哪些目录中,可以不要
X-Desktop-File-Install-Version=0.21

 

 

示例:vi eclipse.desktop 

内容:
[Desktop Entry]
Version=2.4
Name=Eclipse
GenericName=Eclipse
Comment=Eclipse
Exec=/usr/bin/Eclipse
Icon=/opt/Eclipse
Terminal=false
Type=Application
编辑完成后保存,之后就可以在桌面上看到你刚刚创建的快捷方式了。
双击运行。OK,创建完成了。

 转至:http://blog.csdn.net/happyeveryminutefl/article/details/71446420
 
原创粉丝点击