Thursday, October 25, 2012

File associations

There is a lot of information at libre-software.net

Associate all office documents to LibreOffice instead of OpenOffice.org

Display all the MIME types associated to OpenOffice.org documents with the following command:

cat /usr/share/applications/defaults.list | grep openoffice.org
Append all the concerned lines to the local file:
cat /usr/share/applications/defaults.list | grep openoffice.org >> ~/.local/share/applications/mimeapps.list
Open the defaults.list description file with gedit:
gedit ~/.local/share/applications/mimeapps.list
And replace all occurences of "openoffice.org" with "libreoffice" 
 
Finally, save the file. No need to restart, you're all set!

No comments:

Post a Comment