Ubuntu12.04创建eclipse图标

来源:互联网 发布:哪些端口不是敏感端口 编辑:程序博客网 时间:2024/05/11 09:50

在ubuntu12.04系统下成功使用解压后的eclipse,但是没有启动图标  需要手动添加

参考网络上的资料都说要在/usr/share/applications目录下创建eclipse.desktop文件

cd /usr/share/applications

touch eclipse.desktop

网络上众说纷纭,参考了一篇帖子发现压根就没作用  内容如下

[Desktop Entry]

Type=Application
Name=eclipse
Comment=Eclipse
Icon=/home/tj/adt-bundle-linux-x86-20130514/eclipse/icon.xpm(这个自己修改)
Exec=/home/tj/adt-bundle-linux-x86-20130514/eclipse/eclipse
Terminal=false
Categories=Development;IDE;Java;


后来参考另外一篇文章  测试OK  内容如下

[Desktop Entry]
Name=eclipse
Name[zh_CN]=eclipse
Comment=eclipse Client
Exec=/home/tj/adt-bundle-linux-x86-20130514/eclipse/eclipse
Icon=/home/tj/adt-bundle-linux-x86-20130514/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Application;Development;
Encoding=UTF-8
StartupNotify=true


其他的应用程序读可以按照类似添加


然后在Dash主页上搜索eclipse   就可以找到并添加到侧边栏上