Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text editor opens with no menu bar unless started with sudo

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

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 AltV to try to enable the menu shows only a Hide Menu option, so it clearly thinks it is currently being displayed.

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.

like image 450
Borodin Avatar asked Feb 09 '14 13:02

Borodin


1 Answers

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

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

like image 54
nerdward Avatar answered Oct 05 '22 19:10

nerdward