eclipse添加桌面快捷方式

linuxmint系统

输入sudogedit /usr/share/applications/eclipse.desktop,在打开的文件中输入以下参数:

1 [Desktop Entry]
 2 Encoding=UTF-8
 3 Name=Eclipse
 4 Comment=Eclipse IDE
 5 Exec=/home/hadoop/eclipse/eclipse
 6 Icon=/home/hadoop/eclipse/icon.xpm
 7 Terminal=false
 8 StartupNotify=true
 9 Type=Application
10 Categories=Application;Development;
1 [Desktop Entry] 2 Encoding=UTF-8 3 Name=Eclipse 4 Comment=Eclipse IDE 5 Exec=/home/hadoop/eclipse/eclipse 6 Icon=/home/hadoop/eclipse/icon.xpm 7 Terminal=false 8 StartupNotify=true 9 Type=Application 10 Categories=Application;Development;

注意:Exec 和 Icon 改为自己eclipse目录的路径

保存并退出(如果前面不是以管理员[sudo]登录的这里不能保存!!!)

再从文件夹进入/usr/share/applications目录下就可以看到eclipse图标了:

复制图标到桌面即可。

linuxmint系统 输入sudogedit /usr/share/applications/eclipse.desktop,在打开的文件中输入以下参数: 1 [Desktop Entry] 2 Encoding=UTF-8 3 Name=Eclipse 4 Comment=Eclipse IDE 5 Exec=/home/hadoop/eclipse/eclipse 6 Icon=/home/hadoop/eclipse/icon.xpm 7 Terminal=false 8 StartupNotify=true 9 Type=Application 10 Categories=Application;Development; 注意:Exec 和 Icon 改为自己eclipse目录的路径 保存并退出(如果前面不是以管理员[sudo]登录的这里不能保存!!!) 再从文件夹进入/usr/share/applications目录下就可以看到eclipse图标了: 复制图标到桌面即可。
经验分享 程序员 微信小程序 职场和发展