I just downloaded Sublime Text Editor, and I unpacked the tarball. However, now I want to make it searchable in the Dash Board menu, like all applications that are installed using the Ubuntu Software Center. How do I do it?
I just downloaded Sublime Text Editor, and I unpacked the tarball. However, now I want to make it searchable in the Dash Board menu, like all applications that are installed using the Ubuntu Software Center. How do I do it?
1- Create an empty file and rename it to
sublime.desktop
2- Add some lines in it following the below examples (choose one and change it on your conditions)
Ex A. Hotshots
.desktop
file:Ex B. Amazon
.desktop
fileEx C. Goldendict
.desctop
file:3- put sublime.desktop file in this directory:
/usr/share/applications
A much easier method is to try the public beta version, as it comes in both tarball form for any Linux version, and in a
.deb
format specifically for Ubuntu. Download either 32- or 64-bit, depending on your version of Ubuntu (rununame -a
at the command line, and look for eitheri386
(32-bit) orx86_64
(64-bit) in the output), then at the command line navigate to where you downloaded it and runwhere
XXXX
is the build number (currently 3059) andYYYY
is eitheri386
oramd64
. This will automatically install Sublime Text in/opt/sublime-text
, create a/usr/bin/subl
command, and automatically create/usr/share/applications/sublime_text.desktop
along with the associated icons. It should also create a launcher in your Unity taskbar.Sublime Text 3 is the future of the editor, and every day more and more plugins and extensions are released or revised on Package Control that are compatible with ST3. If you purchase a license, which is required for long-term use after evaluation, you will also have access to the bleeding edge development releases which are released more frequently than the public beta versions and so are more up-to-date as far as new features and bug fixes are concerned. Sublime Text 2 is basically a finished product as far as development is concerned, and while it is quite stable for most people, many plugins do not work with it, especially those under active development that depend on some of the advanced features that ST3 provides.
It's worth noting that ST2 and ST3 can coexist peacefully on the same system, as the plugins and data are stored separately. You obviously can't have two
subl
commands, but you can rename one of themsubl2
orsubl3
, for example.If you still need to create a
.desktop
file for ST2, its contents should be as follows. Please note that it assumes you moved theSublime Text 2
directory from where you unpacked it to/opt/sublime_text_2
. If this is not the case, please update the directory paths accordingly.Save the file as
sublime.desktop
, then usesudo
to move it to/usr/share/applications
. You may have to log out and then back in, but it should now be available in Unity.Good luck, and if you have any questions please let me know.