2020-11-30-linux-freedesktop-开始菜单配置

Desktop Entry

Desktop Entry 示例

1
2
3
4
5
6
7
8
9
10
11
12
$ cat /usr/share/applications/xmind.desktop
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=xmind8
Comment=mindmap tool
Icon=/opt/xmind/xmind.256.png
Exec=/opt/xmind/xmind-8-update8-linux/XMind_amd64/XMind %F
Path=/opt/xmind/xmind-8-update8-linux/XMind_amd64
Terminal=false
Categories=Office;Productivity;Development;X-XFCE;X-Xfce-Toplevel;
MimeType=application/vnd.xmind.workbook;

Icon

icon 可能的位置:

  • $HOME/.icons
  • /usr/share/icons
  • $XDG_DATA_DIRS
  • /usr/share/pixmaps