升级到Ubuntu 13.10后,当我点击Eclipse中的任何菜单(帮助、窗口、运行)时,它们都不会显示。只有菜单存根和选择可见。

我尝试安装新的4.3,同样的事情发生了。其他人有这种经历吗?


当前回答

这个错误已经在Ubuntu 13.10中得到确认,这里是一个链接。 为了克服这个问题,你必须在Exec中修改你的eclipse.desktop文件,将env UBUNTU_MENUPROXY传递给eclipse路径,eclipse将可以从带有功能菜单栏的启动器中运行。 下面是更改eclipse.desktop文件的模式:

Exec=env UBUNTU_MENUPROXY= path/to/eclipse

其他回答

您仍然可以使用ALT键访问菜单:)

同样的问题也在askubuntu上发布了(我也回答了):

Eclipse菜单被切断或不显示

这里是完整的答案。


如何解决Ubuntu 13.10中的Eclipse菜单问题

(稳定的方式,直到有人修复bug)

该方法假定您已经拥有eclipse.desktop文件(或者您可以从头创建一个新的文件)。否则,你可以暂时看看下面的“快速方法”。

Open your eclipse.desktop file: sudo -H gedit /usr/share/applications/eclipse.desktop (If you can't find it in this path, try in ~/.local/share/applications/eclipse.desktop. Otherwise, you could have to find yours using locate command). Replace the Exec= line with this: Exec=env UBUNTU_MENUPROXY= eclipse Where "eclipse" is the path to your eclipse executable. In this case it's just "eclipse" since there's a symlink in /usr/bin folder. NOTE: If you can't find your eclipse.desktop file, you can simply create one from scratch in the above path, and fill it with these lines: [Desktop Entry] Type=Application Name=Eclipse Icon=eclipse Exec=env UBUNTU_MENUPROXY= eclipse Terminal=false Categories=Development;IDE;Java; Save the file.

现在您可以像往常一样从Eclipse的图标运行Eclipse。

(快速但重复的方式)

如果你没有任何Eclipse .desktop文件,并且你现在不想创建它,你可以简单地运行Eclipse,使用下面的命令:

UBUNTU_MENUPROXY= eclipse

其中“eclipse”是eclipse可执行文件的路径。注意,这只是运行一次Eclipse的最快方式。如果您不想记住这个命令并在每次必须运行Eclipse时使用它,请遵循上面的“稳定方式”。


来源:

Keenformatics -如何在Ubuntu 13.10中显示Eclipse菜单 Ubuntu文档-环境变量 Eclipse菜单不会在Saucy中显示

1)首先,关闭eclipse并这样做:

sudo gedit /usr/share/applications/eclipse.desktop

2)在这个文件的末尾复制粘贴这一行

Exec=env UBUNTU_MENUPROXY=0 /your/path/to/eclipse/binary

打开eclipse, eclipse的菜单将开始显示。 (适用于Ubuntu 12.04版本后)

这个错误已经在Ubuntu 13.10中得到确认,这里是一个链接。 为了克服这个问题,你必须在Exec中修改你的eclipse.desktop文件,将env UBUNTU_MENUPROXY传递给eclipse路径,eclipse将可以从带有功能菜单栏的启动器中运行。 下面是更改eclipse.desktop文件的模式:

Exec=env UBUNTU_MENUPROXY= path/to/eclipse

您必须创建一个新文件来打开eclipse。

#!/bin/bash
export UBUNTU_MENUPROXY=0
path_to/eclipse/eclipse