1) 创建快捷方式文件
gedit ~/.local/share/applications/eclipse.desktop
2) 增加文件内容如下:
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=C++ IDE
Exec=/usr/local/eclipseCDT/eclipse
Icon=/usr/local/eclipseCDT/icon.xpm
Terminal=false
StartupNotify=true
Type=Application
Categories=Application;Development;
其中,Exec和Icon修改成自己的eclipse安装目录,在这里/usr/local/eclipseCDT/是安装目录
3) 修改文件的权限
chmod u+x eclipse.desktop
4) 运行eclipse
点击左上角的eclipse快捷方式,运行eclipse
时间: 2024-11-11 02:57:29