Sublime Text editor opens without a menu bar, unless started with sudo

I installed Ubuntu 13.10 on VirtualBox 4.3.6, running on Windows 7. I installed the VirtualBox guest add-ons on Ubuntu.

I used this .deb file to install Sublime Text, which seems to work fine, except that it does not have a menu bar, unless it is run with sudo privileges.

Using Alt V to try to enable the menu, only the Hide menu option is displayed , so he clearly thinks that it is currently displayed.

I see this behavior for both Sublime Text 2 and Sublime Text 3.

Can anyone understand what the problem is?

I found this question that relates to similar symptoms, but the problem has not been resolved.

+6
source share
6 answers

If you start with a shortcut on the desktop, you can edit the exec line file .desktop 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.

+8
source

Here is a simple solution that worked for me

Close Sublime Text 3 if it is open. Open and edit the file ~/.config/sublime-text-3/Local/Session.sublime_session to make sure that "menu_visible" is "true" in all places in this file.

 "menu_visible": true, 

Source: http://www.thefourtheye.in/2014/01/un-hiding-menu-bar-in-sublime-text-3.html

+7
source

I decided in Ubuntu16.04! Sublime installation path / opt /

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

Add env UBUNTU_MENUPROXY=0 to Exec= before /opt/ * as shown in fig.

Sublime Config Example

+5
source

Destroy any saved Sublime editor settings, possibly in ~ / .sublime or similar.

+1
source

For Ubuntu, create this sublime file in / usr / bin /

 #!/bin/bash env UBUNTU_MENUPROXY=0 /opt/sublime/sublime_text $@ 2>/dev/null & 

Then chmod +x sublime . Put it in your executable path, and you're good to go! If you have a hill in another place, you will have to set this in this part to '/ opt / sublime / sublime_text'

You want the errors to be redirected to null, as Glib gives warnings (this is a known Ubuntu problem).

+1
source

press Ctrl + Shift + p , then type vmenu Select Toggle menu and type. then check it out.

-1
source

All Articles