Unity Dash – How to Add Sublime Text to Dash

sublime-textunity-dash

I tried 2 types of links and it still I cant add it! I use the unregistered 64 version. On Ubuntu forums and external site

Why is it not coming in the dash board. What is wrong? I even restarted the system to check if it came after the restart after the .desktop file. While the solution listed on the ubuntu forum asks to enter "main menu", there is no match in mine.

Best Answer

  1. Open Terminal and write this command

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

    This will create a file name sublime.desktop in the user/share/applications/ folder and open it for you.

  2. Copy paste the following content in it and save the file

    [Desktop Entry]
    Version=1.0
    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
    Terminal=false
    Icon=/usr/lib/Sublime Text 2/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
    
  3. You will see the Sublime-Text icon in the dash-board. right click the icon and click

    Lock in Launcher

Related Question