Use Sublime 2 on Fedora 17 instead of gedit
Hi, i just downloaded Sublime 2 Text Editor.
- I moved it to a own folder
- I created a /usr/bin/sublime file with:
#!/bin/sh export
SUBLIME_HOME="/home/chris/comp/sublime"
$SUBLIMEHOME/sublimetext $*
And a desktop file:
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Sublime Text 2
Exec=sublime
Icon=/home/chris/comp/sublime/Icon/128x128/sublime_text.png
Terminal=false
Type=Application
Categories=Utility;
Now i can use it via the programm search and so on. Thats great. BUT how can i use it now as my standard editor? If i do a rightclick on my ".py"-file i cant find sublime in the list of programms. A option to use a terminal-command like "sublime" is neither possible.
How can i register sublime properly to use it as my custom text editor? Thanks in advance.
Why don't you install the rpm package? http://repo.cloudhike.com/sublime2/fedora/
Using the desktop file you created, add the mimetypes you wish to open with the application. In the case of gedit, its .desktop file has the following line
So, add that, along with any other types in particular you're interested in. Then execute:
To verify that this worked you can do this:
Hope this helps.
Yep, hope the repo is safe