diff --git a/Software/Development/OperatingSystem/Linux/User/创建_Desktop_Entry.md b/Software/Development/OperatingSystem/Linux/User/创建_Desktop_Entry.md new file mode 100644 index 0000000..a2e3cb4 --- /dev/null +++ b/Software/Development/OperatingSystem/Linux/User/创建_Desktop_Entry.md @@ -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 配置文件与程序关联。