1 创建快捷文件
终端运行命令:
sudo gedit /usr/share/applications/eclipse.desktop
2 编辑文件
版本一:高于13.04的ubuntu会存在菜单栏不出现的问题
其中Exec与Icon后数据为安装路径或免安装解压版的解压路径:
/home/liaoyuhuan/InstallFile/adt-bundle-linux-x86_64-20131030/eclipse
[Desktop Entry] Name=Eclipse Comment=c project manage software Exec=/home/liaoyuhuan/InstallFile/adt-bundle-linux-x86_64-20131030/eclipse/eclipse Icon=/home/liaoyuhuan/InstallFile/adt-bundle-linux-x86_64-20131030/eclipse/icon.xpm Terminal=false Type=Application Categories=GNOME;GTK;Office;Eclipse
版本二:基本一致
解决:在高于13.04的ubuntu会有菜单栏不出现的问题
[Desktop Entry] Name=Eclipse Comment=c project manage software Exec=env UBUNTU_MENUPROXY=0 /home/liaoyuhuan/InstallFile/adt-bundle-linux-x86_64-20131030/eclipse/eclipse Icon=/home/liaoyuhuan/InstallFile/adt-bundle-linux-x86_64-20131030/eclipse/icon.xpm Terminal=false Type=Application Categories=GNOME;GTK;Office;Eclipse
ps: 如何将eclipse加入快速启动栏 ?
打开dash home(左上角的第一个)
输入eclipse
将application下eclipse图标拖入快速启动栏