1.在/usr/share/applications下新建eclipse.desktop
2.在终端输入下列代码:
sudo gedit /usr/share/applications/eclipse.desktop
3.在文件如添加如下内容,然后保存退出即可。
[Desktop Entry]
Name=Eclipse
Comment=c project manage software
Exec=/home/chenming/eclipse/eclipse
Icon=/home/chenming/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Eclipse
4.在/usr/share/applications/下找到eclipse图标,复制到桌面即可
2.在终端输入下列代码:
sudo gedit /usr/share/applications/eclipse.desktop
3.在文件如添加如下内容,然后保存退出即可。
[Desktop Entry]
Name=Eclipse
Comment=c project manage software
Exec=/home/chenming/eclipse/eclipse
Icon=/home/chenming/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Eclipse
4.在/usr/share/applications/下找到eclipse图标,复制到桌面即可