1.下载eclipse包在某个目录下解压 ,此处以home/wy/CREST/目录为例
2.新建 eclipse.desktop文件,输入内容如下:
[Desktop Entry]
Name=eclipse
Name[zh_CN]=eclipse
Comment=eclipse Client
Exec=/home/wy/CREST/eclipse/eclipse
Icon=/home/wy/CREST/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Application;
Encoding=UTF-8
StartupNotify=true
3.关闭文件eclipse.desktop,修改eclipse.desktop文件权限
chmod 777 eclipse.desktop
4.复制eclipse.desktop到相应的目录下,
如果要想在桌面看到此快捷方式图标则输入如下命令:
cp eclipse.desktop /home/wy/Desktop/
如果想在dash主页看到则:
cp eclipse.desktop /usr/share/applications
时间: 2024-10-07 22:30:32