增加 Desktop Entry 说明.
Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
parent
03a051164e
commit
954042d729
|
@ -0,0 +1,18 @@
|
|||
# 创建 Desktop Entry
|
||||
|
||||
Linux 桌面图标入口不仅仅是一个可编辑文件,称作 Desktop Entry,扩展名为“.desktop”。一般集中保存在 /usr/share/applications 目录下。
|
||||
|
||||
一个应用程序 .desktop 参考模板如下:
|
||||
|
||||
```sh
|
||||
[Desktop Entry]
|
||||
Name=GtkTerm
|
||||
Type=Application
|
||||
Comment=A gtk+ based serial port communication program
|
||||
Exec=/usr/bin/gtkterm
|
||||
Icon=gtkterm
|
||||
MimeType=x-scheme-handler/gtkterm;
|
||||
Categories=Network;
|
||||
```
|
||||
|
||||
应用程序图标保存在 /usr/share/icons 目录下,图标通过 MIME 配置文件与程序关联。
|
Loading…
Reference in New Issue