Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After a botched attempt to update Sublime Text 2, I've managed to recover and reinstall, but Ubuntu 12.04's context menu "pointers" seem to be screwed up: the right-click will still list "Sublime Text 2" as the first "Open With" option, but clicking on it results in... nothing. No launch, no reaction at all.

Clearly something isn't pointing to something in the right way any more. How do I tell the right-click launcher where to point for the "correct" Sublime Text 2?

share|improve this question

You can try fixing the application's individual settings (in Ubuntu 12.04 onwards w/ Unity). In your terminal, enter:

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

Now paste the following and save the file:

[Desktop Entry]
Name=Sublime Text 2
# Only KDE 4 seems to use GenericName, so we reuse the KDE strings.
# From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413.
GenericName=Text Editor
Exec=sublime %f
Icon=/opt/Sublime Text 2/Icon/48x48/sublime_text.png
[NewWindow Shortcut Group]
Name=New Window
Exec=sublime -n

Hopefully now Sublime Text 2 will work fine from your right click context menu.

share|improve this answer
Yes, it's work for me! Thanks! – Pavel G. Apr 10 '14 at 5:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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