在目录/usr/share/applications下创建eclipse.desktop文件
weijl@ubuntu:/usr/share/applications$ sudo touch eclipse.desktop
weijl@ubuntu:/usr/share/applications$ sudo vim eclipse.desktop
内容为:
[Desktop Entry]
Encoding=UTF-8
Name=eclipse
Comment=eclipse
Exec=/usr/local/eclipse/eclipse
Icon=/usr/local/eclipse/icon.xpm
Terminal=false
StartupNotify=true
Type=Application
Categories=Application;Development;
weijl@ubuntu:/usr/share/applications$sudo chmod 777eclipse.desktop
在目录/usr/share/applications下将看到快捷方式图标
将其复制到桌面,ok!
原文链接:https://www.f2er.com/ubuntu/354279.html