Set default application in Linux on the command line

Set the default application for Java files to Kate and use Evince for pdfs:

echo "text/x-java=kde4-kate.desktop;" >> /usr/share/xfce4/applications/defaults.list
echo "application/pdf=evince.desktop;" >> /usr/share/xfce4/applications/defaults.list
This entry was posted in Linux and tagged , , , by swk. Bookmark the permalink.

About swk

I am a computational linguist, teacher of computer science and above all a huge fan of LaTeX. I use LaTeX for everything, including things you never wanted to do with LaTeX. My latest love is lilypond, aka LaTeX for music. I'll post at irregular intervals about cool stuff, stupid hacks and annoying settings I want to remember for the future.