编辑器打开时没有菜单栏

编辑器打开时没有菜单栏

本文介绍了除非以 sudo 启动,否则 Sublime Text 编辑器打开时没有菜单栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 VirtualBox 4.3.6 上安装了 Ubuntu 13.10,在 Windows 7 上运行.我已经在 Ubuntu 上安装了 VirtualBox Guest Additions.

I have installed Ubuntu 13.10 on VirtualBox 4.3.6, running on Windows 7. I have installed the VirtualBox Guest Additions on Ubuntu.

我已经使用 这个 .deb 文件来安装 Sublime Text,这似乎工作正常,只是它没有菜单栏,除非以 sudo 权限开始.

I have used this .deb file to install Sublime Text, which seems to work fine except that it has no menu bar unless started with sudo privileges.

使用 尝试启用菜单仅显示隐藏菜单选项,因此它显然认为它当前正在显示.

Using to try to enable the menu shows only a Hide Menu option, so it clearly thinks it is currently being displayed.

我在 Sublime Text 2 和 Sublime Text 3 中都看到了这种行为.

I am seeing this behaviour for both Sublime Text 2 and Sublime Text 3.

有人知道问题是什么吗?

Does anyone have any idea what the problem may be?

我发现这个问题与类似症状有关,但问题并未解决.

I have found this question that relates to similar symptoms, but the problem wasn't resolved.

推荐答案

如果您从桌面快捷方式开始,您可以将 .desktop 文件的 Exec 行编辑为类似Exec=env UBUNTU_MENUPROXY=0/usr/bin/sublime-text

If you are starting from a desktop shortcut you can edit the .desktop file's Exec line to be something likeExec=env UBUNTU_MENUPROXY=0 /usr/bin/sublime-text

请参阅此处Eclipse 解决类似问题的示例.

See here for an example of how a similar problem was solved for eclipse.

这篇关于除非以 sudo 启动,否则 Sublime Text 编辑器打开时没有菜单栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 10:50