I can start the software and find it over the dash, but no icon is shown (a blank sheet in the dash and a question mark in launcher). Sublime Text is sitting in /opt/sublime_text/ . sudo sublime /usr/share/applications/sublime.desktop looks as following:

[Desktop Entry]
Version=3.0
Name=Sublime Text 3
# 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
Terminal=false
Icon=/opt/sublime_text/Icon/48x48/sublime_text.png
Type=Application
Categories=TextEditor;IDE;Development
X-Ayatana-Desktop-Shortcuts=NewWindow

[NewWindow Shortcut Group]
Name=New Window
Exec=sublime -n
TargetEnvironment=Unity

I got also a "?" on icons from applications unity wants me to install from firefox (like tumblr, gmail).

share|improve this question

For me it helped to simply change a line in /.local/share/applications/sublime_text.desktop

Wrong: Icon=sublime_text.png
Correct: Icon=sublime-text.png

i.e. replace underscore by dash in icon name.

share|improve this answer

Had exact problem, adding the correct path to executable or softline resolved the issue for me

Exec=/usr/bin/sublime %F

Don't forget to quit and restart sublime for this to get updated.

share|improve this answer
    
wanted to add this as a thanks to devav2's answer! – Pramod Kumar Nov 3 '15 at 6:28

The only thing that I feel would be wrong is the path.Add a proper path to Exec.

[Desktop Entry]
Version=1.0
Type=Application
Name=Sublime Text
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and prose
Exec=/opt/sublime_text/sublime_text %F
Terminal=false
MimeType=text/plain;
Icon=sublime-text
Categories=TextEditor;Development;
StartupNotify=true
Actions=Window;Document;

Hopefully this should resolve the issue.

share|improve this answer
    
But I created following symbolic link sudo ln -s /opt/sublime_text/sublime_text /usr/bin/sublime as they wrote in sublime-text-unofficial-documentation.readthedocs.org/en/lat‌​est/… – empedokles Aug 20 '14 at 9:04

Your Answer

 
discard

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.