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

前端 未结 6 2305
死守一世寂寞
死守一世寂寞 2021-02-09 14:28

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

相关标签:
6条回答
  • 2021-02-09 14:44

    Here is a simple solution that worked for me

    Close the 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 that file.

    "menu_visible": true,
    

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

    0 讨论(0)
  • 2021-02-09 14:46

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

    0 讨论(0)
  • 2021-02-09 14:46

    For Ubuntu create this file sublime 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 sublime in a different location you'll have to set that at this part '/opt/sublime/sublime_text'

    You'll want to have errors routed to null since Glib throws up warnings (it's a known Ubuntu issue).

    0 讨论(0)
  • 2021-02-09 14:48

    I solved in Ubuntu16.04! Sublime installation path is /opt/

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

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

    0 讨论(0)
  • 2021-02-09 14:49

    Wipe out any saved Sublime editor settings, probably in ~/.sublime or similar.

    0 讨论(0)
  • 2021-02-09 15:06

    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.

    0 讨论(0)
提交回复
热议问题