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

I've downloaded Sublime Text for Linux (32bit) and put it in /opt, linked it in /usr/bin and currently I can start it by typing sublime_text in console. Whenever I start it its icon appears in the Shell's Dock but I can't pin it, and it doesn't appear in the Applications menu either.

How do I add it?

share|improve this question
up vote 3 down vote accepted

The shortest way:

  1. Press Super to activate overview.
  2. Type main menu and hit Enter
  3. Add new item, where the command is sublime_text.
  4. Voila, you have your shortcut.
share|improve this answer
2. "Hauptmenü" oder "Menü" auf Deutsch oder "alacarte" (Programmname) – PythoNic Mar 20 '14 at 13:18

You have several options to make this happen. The crux of it is that in order for an app to be usable by GNOME Shell, it needs to have a corresponding .desktop file in either /usr/share/applications or ~/.local/usr/share/applications.


  • Use alacarte (the old GNOME menu editor) to add a new menu item
  • Use the command gnome-desktop-item-edit ~/.local/usr/share/applications/sublime-text.desktop, which will pop a dialog asking for the information required for the shortcut, the same as alacarte does
  • Add a file into one of those directories yourself, using the same format as other .desktop files

The layout for a desktop file is of the form:

#!/usr/bin/env xdg-open

[Desktop Entry]
Name[en_GB]=Sublime Text 2
Comment[en_GB]=Sublime Text 2
Name=Sublime Text 2
Comment=Sublime Text 2
share|improve this answer
~/.local/usr/share/... - the subdirectory usr/ seems to be wrong. For me it works for ~/.local/share/... – PythoNic Mar 20 '14 at 13:31

I installed Sublime Text 3 from Webupd8 PPA, and the .desktop file was already created.

But I was still not able to pin the icon to Gnome Shell dock when the app is launched.

For those who are in the same situation, you can pin it from the dashboard search directly, without launching it.

Just open the dashboard with the Super key, search for Sublime, right click on the icon, then select Add to Favorites.

share|improve this answer

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.