1,进入一个目录
/usr/share/applications
2,复制一份已经有的类似文件(这里就按照eclipse来写)
cp xxxxx.desktop eclipse.desktop
3,修改复制下的文件
vim eclipse.desktop
4,添加内容为
[Desktop Entry]
Encoding=UTF-8
Name=eclipse
Comment=Eclipse IDE
Exec=/home/自己目录/opt/soft/eclipse-jee-neon/eclipse
Icon=/home/自己目录/opt/soft/eclipse-jee-neon/icon.xpm
Terminal=false StartupNotify=true
Type=Application
Categories=GNOME;Development;
网友评论