Ubuntu 16.04 Eclipse 启动器图标问题

10 icons eclipse launcher 16.04

我正在运行 Ubuntu 16.04 LTS,并从他们的网站安装了最新版本的 Eclipse。在左侧的 Unity Launcher 栏中,除了问号之外,我无法将 Eclipse 的图标设为任何内容。我已经创建了一个 .desktop 文件,其中包含 Exec= 和 Icon= 的适当路径,并且我已经通过 chmod 使该项目可执行。.desktop 文件的功能不是问题。我只是无法让显示的图标发生变化。

当 Eclipse 最终启动时,名称确实从 Eclipse 更改为 Workspace Launcher。任何帮助将非常感激。

编辑:代码:

[Desktop Entry]
Exec=/home/**removed**/eclipse/java-mars/eclipse/eclipse
StartupNotify=true
Terminal=false
Type=Application
Icon=/usr/share/icons/eclipseIcon.xpm
Run Code Online (Sandbox Code Playgroud)

*出于安全目的删除了用户名。

编辑:重新安装修复了我遇到的所有 Eclipse 问题。

小智 7

我已经能够通过从中删除 eclipse.desktop 文件~/.local/share/applications然后退出并再次启动 eclipse来解决这个问题:

我遵循了这个解决方案:https : //askubuntu.com/a/735924


Rah*_*rma 6

我有一个类似的问题。我试过这里提到的 ScottC 的回答。我在桌面位置创建了 .desktop 文件,添加了 exec 路径<eclipse installation directory>/eclipse和图标路径<eclipse installation directory>/icon.xpm,然后将其固定到启动器。这对我有用。