桌面图标.md

TODO

Linux 桌面应用图标

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# .desktop 放到 ~/.local/share/applications/your_app_name.desktop 是用户目录
# /usr/share/applications/your_app_name.desktop 是系统应用目录
[Desktop Entry]
Type=Application
Name=List Dashboard
Exec=/opt/mystorage/github/list_dashboard/build/linux/x64/release/bundle/list_dashboard
Icon=/opt/mystorage/github/list_dashboard/linux/icons/Icon-512.png
Comment=Your Application Description
Terminal=false
Categories=Utility;

Type:条目的类型,对于应用程序应该是 Application。
Name:应用程序的名称,将在菜单和搜索中显示。
Exec:启动应用程序的命令或可执行文件的路径。
Icon:应用程序图标的路径,可以是绝对路径,或者如果图标已安装到系统图标路径,只需图标文件的名称。
Comment:应用程序的描述,将在鼠标悬停时显示。
Terminal:是否在终端中运行应用程序。对于GUI应用,通常是 false
Categories:应用程序分类,帮助在应用菜单中归类。

桌面图标.md
https://abrance.github.io/2024/08/29/mdstorage/domain/linux/桌面图标/
Author
xiaoy
Posted on
August 29, 2024
Licensed under