ubuntu18.04中将刚下载解压的eclipse添加到启动器

/usr/share/applications/目录下新建一个名为eclipse.desktop的文件。
文件内容如下:

[Desktop Entry]
Version=2018.09
Name=Eclipse
GenericName[zh_CN]=Eclipse
Exec=/home/yueru/programs/eclipse/eclipse
Terminal=false
Icon=/home/yueru/programs/eclipse/icon.xpm
Type=Application
Categories=Development

其中Exec=/home/yueru/programs/eclipse/eclipse对应eclipse启动文件的位置。(Eclipse安装包解压在/home/yueru/programs/eclipse

然后你就可以发现启动器中存在Eclipse了。

posted @ 2018-10-10 21:34  zifeiy  阅读(836)  评论(0编辑  收藏  举报