Wake Me Up When September Ends.

A wanderer capable of grasping the beauty of the grass, with a heart full of ancient charm, and a fondness for playful wit. Those who understand my words are knowledgeable individuals; those who decipher my code truly comprehend the essence. I am a wandering code swordsman, carrying my skills and riding freely through the digital world.

💁Ubuntu程序Desktop文件位置

Ubuntu的desktop文件相当于windows的桌面软件快捷方式,可以在任何地方快速打开软件。记录一下Ubuntu系统中desktop文件的位置。

方便以后处理删除程序或新增程序时候,桌面图标不正确的问题。

1 用户的desktop 文件位置

~/.local/share/applications

2 公共的 desktop 文件位置,如有重复,用户自己desktop文件优先

/usr/share/applications

.desktop桌面文件的一些常见配置项:

  1. Name:应用程序的可读名称。
  2. Exec:要执行的命令。这通常是启动应用程序的命令。
  3. Icon:应用程序的图标文件路径。
  4. Type:指定项目的类型,可以是Application、Link等。
  5. Categories:指定应用程序所属的类别,比如Utility、Development、Network等。
  6. Terminal:指定是否在终端中运行应用程序。
  7. StartupNotify:指定是否在应用程序启动时发送通知。
  8. MimeType:指定应用程序支持的MIME类型。

示例参考:

启动图标创建示例-https://www.zyimm.com/2022/11/05/Linux/ubuntu/charles-install