Eclipse desktop

Ubuntu解压Eclipse IDE后并不会在侧边栏显示启动图标,为了能在侧边栏显示,方便启动,可以新建一个desktop文件,具体步骤如下:

 1 # switch to root account
 2 su -
 3 # input password
 4 tar -zxvf eclipse-java-mars-1-linux-gtk-x86_64.tar.gz -C /opt
 5 vim /usr/share/applications/eclipse.desktop
 6 # input the following words
 7 [Desktop Entry]
 8 Name=Eclipse
 9 Comment=Develop java
10 Exec=/opt/eclipse/eclipse %U
11 Terminal=false
12 Icon=/opt/eclipse/icon.xpm
13 Type=Application
14 Categories=GTK;Utility;IDE;
15 X-Ayatana-Desktop-Shortcuts=NewWindow;
16 
17 [NewWindow Shortcut Group]
18 Name=New Window
19 Exec=/opt/eclipse/eclipse
20 TargetEnvironment=Unity

关闭保存。然后注销,登陆桌面,打开dash,搜索eclipse,找到eclipse图标后拖到侧边栏,搞定。

原文地址:https://www.cnblogs.com/drizzlewithwind/p/4868715.html