问题
Under Ubuntu in a VirtualBox I have installed Sublime in /opt and created a link (ln) in /usr/bin called sublime
When I just call sublime from a terminal window or using the Ubunto key in the task bar Sublime starts without the menu bar in the top of the window. (So it is impossible to a menu to save e.g.)
When I start sublime with sudo sublime then everything is ok, but then I need to give the password with every start of the program.
How can I just start the program without sudo?
回答1:
Try to install Sublime in a different directory.
Your home directory should be ok, but so is any other directory where you are allowed to save files without using sudo.
Edit: I see now that I misunderstood your question, so it's not surprising that it isn't working this way. Sorry!
回答2:
To reset Sublime menu please do in Terminal:
initctl restart unity-panel-service
Hope this will help you :)
来源:https://stackoverflow.com/questions/15252271/sublime-starts-without-menu-bar