Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to set Sublime Text as default text editor? The only option I see is Pluma.

I'm using Mate Desktop on Fedora 19.

enter image description here

Edit: The Sublime Text executable (installed by hand, not a package) is at /home/matt/sublime_text_3/sublime_text.

share|improve this question
I imagine that clicking on the drop down menu does not show any more options right? – terdon Sep 29 '13 at 11:10
@terdon Pluma's the only option in the drop down – Colonel Panic Sep 29 '13 at 11:31
Sorry, just wanted to make sure, you never know :). – terdon Sep 29 '13 at 11:36

The default file associations are set in either /usr/share/applications/defaults.list (global) or one of ~/.local/share/applications/mimeapps.list or ~/.local/share/applications/defaults.list.

For example, this is what I have on my system:

$ grep -e '\[\|plain' .local/share/applications/mimeapps.list 
[Default Applications]
[Added Associations]

Changing the [Added Associations] line to


made sublime my default editor. Make sure that sublime_text correctly launches sublime if you run it from a terminal and that you have a .desktop file in /usr/share/applications/:

$ cat /usr/share/applications/sublime_text.desktop
[Desktop Entry]
GenericName=Text Editor
Exec=sublime_text %U
share|improve this answer
+1 I was looking for that all the time! – 5chdn Mar 24 '14 at 11:38

You should use gsettings command along with list-recursively parameters such as:

gsettings list-recursively |egrep -i editor

Then apply with set command with the given key you retrived.

enjoy with :

gsettings list-recursively
share|improve this answer

Your Answer


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.