Files open to vi or blank terminal vs. defaulttexteditor

Please post any bugs you have found
Post Reply
Message
Author
User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

Files open to vi or blank terminal vs. defaulttexteditor

#1 Post by technosaurus »

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].
polymath
Posts: 119
Joined: Thu 21 Aug 2008, 15:38

#2 Post by polymath »

thanks... thats a big issue for me. much easier :)
Post Reply