从统一发射器开始日食

我从它的网站上下载了eclipse。 并在主文件夹中提取。 我第一次打开它时效果很好。 然后我把它锁在发射器上。 现在,当我点击eclipse中的启动器图标时它不会启动,但是当我从我提取它的文件夹中启动它时它就会启动。 请告诉我们将它保留在启动器中并从此处打开它。

谢谢。

[Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Name=Java - SnapdealOMS/src/main/java/com/snapdeal/oms/admin/web/controller/ReloadCacheController.java - Eclipse Icon=eclipse.png Path=/home/nakulkumar/Downloads/eclipse Exec=/usr/bin/java -Dosgi.requiredJavaVersion=1.6 -XX:MaxPermSize=256m -Xms40m -Xmx512m -jar /home/nakulkumar/Downloads/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar -data /home/nakulkumar/Snapdeal_workspace -os linux -ws gtk -arch x86_64 -showsplash /home/nakulkumar/Downloads/eclipse//plugins/org.eclipse.platform_4.4.0.v20140925-0400/splash.bmp -launcher /home/nakulkumar/Downloads/eclipse/eclipse -name Eclipse --launcher.library /home/nakulkumar/Downloads/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140603-1326/eclipse_1605.so -startup /home/nakulkumar/Downloads/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar --launcher.appendVmargs -exitdata 34000f -product org.eclipse.epp.package.java.product -vm /usr/bin/java -vmargs -Dosgi.requiredJavaVersion=1.6 -XX:MaxPermSize=256m -Xms40m -Xmx512m -jar /home/nakulkumar/Downloads/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar StartupNotify=false StartupWMClass=Eclipse OnlyShowIn=Unity; X-UnityGenerated=true 

通常,当您从下载的版本运行Eclipse ,它应该在首次运行时在~/.local/share/applications创建一个正确的 .desktop文件。

在这种情况下,由于某种原因,一些线被搞砸了:

  • Exec= -line应该只显示可执行文件的路径。
  • Name= -line显然也(非常)错了

怎么修

只需更换:

  • Exec=开头的行Exec=

     Exec=/path/to/your/eclipse_executable 

    (最有可能的是,看看你的Path= -line,它应该是: Exec=/home/nakulkumar/Downloads/eclipse/eclipse

  • Name= by开头的行:

     Name=Java - Eclipse 

作为比较,这是我在系统上创建的.desktop文件:

 [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Name=Java - Eclipse Icon=eclipse Path=/home/jacob/eclipse Exec=/home/jacob/eclipse/eclipse StartupNotify=false StartupWMClass=Eclipse OnlyShowIn=Unity; X-UnityGenerated=true