您的位置:首页 > 编程语言 > Java开发

Eclipse desktop

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

# switch to root account
su -
# input password
tar -zxvf eclipse-java-mars-1-linux-gtk-x86_64.tar.gz -C /opt
vim /usr/share/applications/eclipse.desktop
# input the following words
[Desktop Entry]
Name=Eclipse
Comment=Develop java
Exec=/opt/eclipse/eclipse %U
Terminal=false
Icon=/opt/eclipse/icon.xpm
Type=Application
Categories=GTK;Utility;IDE;
X-Ayatana-Desktop-Shortcuts=NewWindow;

[NewWindow Shortcut Group]
Name=New Window
Exec=/opt/eclipse/eclipse
TargetEnvironment=Unity


关闭保存。然后注销,登陆桌面,打开dash,搜索eclipse,找到eclipse图标后拖到侧边栏,搞定。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: