fedora15下怎么将eclipse添加到应用程序中去!

我在网上当的方法是gedit /usr/share/applications/eclipse.desktop然后在里面添加如下内容:[Desktop Entry]Name=EclipseComment=用Eclipse开发Exec=/usr/lib/eclispe/eclipseIcon=/usr/lib/eclipse/eclipse32.pngTerminal=falseType=ApplicationCategories=Application;Development; 我的fedpora使15的 谢谢指点输入着个命令报的错如下:[root@linux yangyong]# gedit /usr/share/applications/eclipse.desktopGtk-Message: Failed to load module "pk-gtk-module"(gedit:14411): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supportedg_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.已终止求一个解决方法!!!!!
2026年09月27日 11:05
有2个网友回答
网友(1):

fedora15下将eclipse添加到应用程序中去方法:
在目录/usr/share/application文件夹下添加eclipse.desktop文件
文件内容:
[Desktop Entry]
Name[zh_CN]=eclipse
Exec=/home/corey/tools/eclipse/eclipse
Icon=/home/corey/tools/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Application;Development;X-Red-Hat-Extra;
Encoding=UTF-8
X-Desktop-File-Install-Version=0.3

网友(2):

因为在root用户下gedit貌似是不能用的,所以才会这样。你可以用vim。或者在家目录右键新建一个空白文档,把你贴的那些内容复制上去,保存后重命名为eclipse.desktop,再用
# mv eclipse.desktop /usr/share/applications
命令就可以了。