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图标后拖到侧边栏,搞定。

相关文章:

  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2021-05-19
  • 2022-01-18
  • 2022-01-22
  • 2021-08-16
猜你喜欢
  • 2021-08-30
  • 2021-12-19
  • 2021-08-09
  • 2021-08-19
  • 2022-01-11
  • 2021-10-28
  • 2021-08-05
相关资源
相似解决方案