0.在Eclipse解压目录,创建Eclipse.desktop
vim Eclipse.desktop
1.输入如下内容
[Desktop Entry]
Encoding = utf-8
Name = Eclipse
Comment = Eclipse IDE
Exec = /home/regan/jvm/eclipse/eclipse
Icon = /home/regan/jvm/eclipse/icon.xpm
Terminal = false
StartupNotify = true
Type=Application
Categories = Application;Development;
Exec:表示eclispe的启动文件路径
Icon:设置Eclispe的图标文件路径
2.更改文件属性
chmod -x Eclipse.desktop
3.将图标拖到桌面
网友评论