1.在/home/lcy/Desktop/目录下,根据自己的桌面路径,创建eclipse桌面文件:vim eclipse.desktop
(如:vim /home/lcy/Desktop/eclipse.desktop)
2.添加以下内容:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=jee
Encoding=UTF-8
Name=eclipse
Type=Application
Terminal=false
Name[en_US]=eclipse
Exec=/home/lcy/Software/eclipse/eclipse #执行程序位置,必须填正确
Comment=Eclipse jee
Icon=/home/lcy/Software/eclipse/plugins/org.eclipse.platform_4.9.0.v20180906-0745/eclipse1024.png #解压后的文件里面找到其图标