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.

Ankith p
  • 301
  • 3
  • 11

1 Answers1

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.

BaronBaleron
  • 1,086
  • Can i start sublime in root mode (using sudo) everytime ? Is there any way to do this ? – Ankith p May 21 '16 at 02: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: http://askubuntu.com/questions/517821/how-can-i-make-sublime-text-3-run-as-root-from-unity – BaronBaleron May 21 '16 at 11:21