桌面新建XXX.desktop的文件,复制粘贴以下内容:
[Desktop Entry]
Name=eclipse
Name[zh_CN]=eclipse
Comment=eclipse Client
Exec=/usr/lib/jdk/eclipse/eclipse
Icon=/usr/lib/jdk/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Application;
Encoding=UTF-8
StartupNotify=true
修改exec 和Tcon为程序的启动命令及图标
给快捷方式,赋予可执行的权限
sudo chmod 777 eclipse.desktop