this will make the defaulttexteditor (usually geany) automatically open many file types without having to right click & edit as text - currently it tries to run vi in an xterm (if you wish you can always set vi as your defaulttexteditor in /usr/local/bin/defaulttexteditor )
Code: Select all
sed -i 's/exec xterm -e vi/defaulttexteditor/' /etc/xdg/rox.sourceforge.net/MIME-types/text
This applies to most files associated with source .c .h etc...
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].