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.
I'll start by assuming your problem is that Sublime Text 2 does not appear when you search for it in the Dash.
After creating a launcher as specified in the second link you posted, search for the launcher using the Dash. You should then be able to pin the app to the launcher once it starts up.
You want to search for "sublime" not "main menu." Not sure how GNOME Shell works, but there is no main menu in Unity.
In the event that Sublime does show up when searching, and your problem is just the pinning, you should be able to pin to the launcher by simply dragging the .desktop file you created to the launcher.
This is the simplest way to add Sublime Text 2 to the Unity launcher. Open a terminal and type:
Fill out the fields in the form and click OK. You can now find Sublime Text 2 in all the same locations as the other installed applications on your computer. When you launch Sublime Text 2, right click its icon and "Lock To Launcher".
Note: The application shortcut will only be visible for your current user. If this unacceptable, change
Download the tarfile that suits you best and extract it. Here’s the command to extract tar.bz2 files:
You’ll notice that I got the 64-bit version. The reason is that it’s lightning fast. So, go for that if you can!
You’ll get a “Sublime Text 2″ folder after extraction. This folder contains all the files that Sublime Text will need. So we have to move that folder somewhere more appropriate. Like the “/opt/” folder :
At some point you’d want to be able to call Sublime Text from the Terminal by just typing “sublime”. To do that, we’ll just create a symbolic link in “/usr/bin” like thus:
Now that our files are at the right place, we need to create a launcher in Unity. To do this, we’re going to create a .desktop file in “/usr/share/applications”:
And paste the following content:
As you can see, these lines are quite straightforward. Go ahead and experiment a bit with them.
Now you would probably want to open all text files with Sublime Text 2. The easiest way to do that is to open up the file associations list:
And replace all occurrences of gedit.desktop with sublime.desktop. Tada ! There you go. You now have Sublime Text 2 installed on Unity on Ubuntu 12.04, like a pro.