1、在/usr/share/applications中建立文件eclipse.desktop
cd /usr/share/applications
mkdir eclipse.desktop
2、把下面的内容复制到eclipse.desktop里面
[Desktop Entry] Encoding=UTF-8 Name=eclipse Comment=Eclipse IDE Exec=/usr/local/eclipse/eclipse #eclipse的安装路径为:<span style="font-family: Arial, Helvetica, sans-serif;">/usr/local/eclipse</span> Icon=/usr/local/eclipse/icon.xpm #应用程序的图标位置 Terminal=false #启动时候,不启动 StartupNotify=true Type=Application Categories=Application;Development;
3、在图形界面可以在/usr/share/applications文件夹下看见eclipse的图标
把它复制到桌面即可
时间: 2024-12-22 06:25:05