1. 程式人生 > >Linux 下新增 Eclipse 桌面圖示

Linux 下新增 Eclipse 桌面圖示

1、 sudo gedit  /usr/share/applications/eclipse.desktop

2、 向eclipse .desktop中新增以下內容:

[Desktop Entry]

Encoding=UTF-8

Name=Eclipse

Comment=Eclipse IDE

Exec=/home/lxc/java/eclipse/eclipse

Icon=/home/lxc/java/eclipse/icon.xpm

Terminal=false

StartupNotify=true

Type=Application

Categories=Application;Development;

3、 給eclipse .desktop檔案賦權 :

chmod u+x eclipse.desktop

此時我們會看到,剛才建立的eclipse.desktop檔案變成了Eclipse的圖示。

4、 找到/usr/share/applications/eclipse.desktop,右鍵選擇 copy to desktop,即可。

 

注:1、Exec代表應用程式的位置(視實際情況修改)

Icon代表應用程式圖示的位置(視實際情況修改)