Ubuntu – Default application to open text file in Thunar under Awesome WM

awesomethunarxfcexubuntu

I'm on Xubuntu 12.04 and using Awesome WM. In Awesome session, If I double click a plain text file(txt, asc, rb, py etc.) in Thunar, it opens with Abi Word. But I want it to open with a text editor not a word processor. In Xubuntu/Xfce session, it does open with text editor(Leafpad). How could I fix it without setting it for various text files?

Best Answer

If you're using Xfce 4.10, then you can Settings > MIME Type Editor, then set text/plain to whatever text editor you want. I'm not sure if this will take care of all possible file extensions associated with plain text files, but my hunch is that it should help.