Welcome

首页 / 操作系统 / Linux / Linux下如何创建桌面图标

Linux下如何创建桌面图标

首先进入/usr/share/applications/目录 ,

创建idea.desktop文件,内容如下


[Desktop Entry]

Type=Application

Name=IDEA

Comment=JetBrains IDEA

Icon=/usr/local/Jetbrains/idea-IU-222.4554.10/bin/idea.png

Exec=/usr/local/Jetbrains/idea-IU-222.4554.10/bin/idea.sh

Terminal=false

StartupNotify=false


也可以像下面这样

[Desktop Entry]

Type=Application

Name=FileZilla

Icon=/data/Firezilla/share/icons/hicolor/48x48/apps/filezilla.png

Exec=/data/Firezilla/bin/filezilla

Terminal=false

StartupNotify=false


保存后,将这个文件复制到桌面即可。

其它的图标也可以仿着创建即可。


其它常用的图标

[Desktop Entry]
Categories=Development
Comment=Database Development Tool
Exec=/usr/local/navicat/navicat16-premium-cs.AppImage
Icon=/home/oem/.local/share/icons/hicolor/256x256/apps/Navicat Premium 16.png
Name=Navicat Premium 16
StartupNotify=true
StartupWMClass=Navicat Premium
Terminal=false
Type=Application