操作
Linux(Ubuntu)的桌面圖標文件路徑是 /usr/share/applications/*.desktop
這些桌面圖標的大致代碼如下:
[Desktop Entry]
Type=啓動類型
Name=快捷名字
Comment=介紹
Icon=圖標路徑
Exec=啓動文件路徑
Terminal=是否終端打開
Categories=分類
如果給Eclipse添加桌面圖標,可以 sudo [vim | gedit] /usr/share/applications/eclipse.desktop
,添加如下代碼
[Desktop Entry]
Type=Application
Name=Eclipse
Comment=Eclipse Integrated Development Environment For JavaEE
Icon=/home/chgl16/software/eclipse/icon.xpm
Exec=/home/chgl16/software/eclipse/eclipse
Terminal=false
Categories=Development;IDE
IDEA、微信啥的類似
[Desktop Entry]
Type=Application
Name=IDEA
Comment=IDEA-Ultimate-2018
Icon=/home/chgl16/software/idea-ultimate/bin/idea.png
Exec=/home/chgl16/software/idea-ultimate/bin/idea.sh
Terminal=false
Categories=Development;IDE;
可以爲可以單擊啓動的文件和.sh腳本文件配置