今天到网上搜ubuntu创建桌面快捷方式,发现尽是些不负责任,有问题的教程,故我也发教程一篇
在你的Home/Desktop文件夹下面新建一个xxx.desktop的文件,并且加上执行权限
下面解释下模板的内容,第一行,是凡是标有可执行标记的脚本必备的注释,内容为执行该脚本的解释器地址,这里是解释桌面快捷方式用的
第二行开始就是具体的内容了
解释两个重要的地方,地一个是exec,这个是你的可执行文件的地址,如果中间包含空格,那么用引号扩起来
Icon,这个是你的应用的图标,要不默认图标很难看
he table below lists all Main Categories.
Main Category Description Notes
AudioVideo Application for presenting, creating, or processing multimedia (audio/video)
Audio An audio application Desktop entry must include AudioVideo as well
Video A video application Desktop entry must include AudioVideo as well
Development An application for development
Education Educational software
Game A game
Graphics Application for viewing, creating, or processing graphics
Network Network application such as a web browser
Office An office type application
Science Scientific software
Settings Settings applications Entries may appear in a separate menu or as part of a "Control Center"
System System application, "System Tools" such as say a log viewer or network monitor
Utility Small utility application, "Accessories"
references:
http://standards.freedesktop.org/menu-spec/latest/apa.html#main-category-registry
http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html
新闻热点
疑难解答
图片精选