2

I have recently installed Ubuntu 16.04 and yesterday I've installed Sublime-text-3 text editor. But the main problem is Menu is not showing unless its opened in root mode,i.e sudo /opt/sublime_text/sublime_text I have searched for various solutions in stackoverflow and askubuntu,but neither solution worked as desired. I have referred sublime from launcher but it also not worked. I had installed sublime-text-3 in previous ubuntu versions and also linux-mint which i had used in the past. But no-where this problem occurred.

Can anyone has similar problem OR some working solutions,please share here.

3

I temporary fixed this by adding command to startup applications list:

bash -c "sleep 2 && initctl restart unity-panel-service"

You can also press ALT+F2 and execute:

initctl restart unity-panel-service

Ps: This will restart all indicators services and some of them will disappear if they started before.

  • Can i start sublime in root mode (using sudo) everytime ? Is there any way to do this ? – Ankith p May 21 '16 at 2:29
  • You need to edit sublime-text.desktop or better make a copy from/user/share/applications to .local/share/applications loacted in Your home folder. Change permissions for You make executable. Then edit with gedit and change line: Exec=gksu /opt/sublime_text/sublime_text %F – BaronBaleron May 21 '16 at 11:20
  • If "gksu" will not work try sudo -H. More info here: askubuntu.com/questions/517821/… – BaronBaleron May 21 '16 at 11:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.