You can change defaults by following method:
defaults.list by following command:
sudo gedit /etc/gnome/defaults.list
Wher you find following line which is default for Libre-office:
Replace with open-office desktop file:
- Save file and exit.
Note: In file
/etc/gnome/defaults.list you can change default applications with desktop file (for find extension or app name you can use Ctrl+F and Ctrl+H for replace).
openoffice-writer.desktop should be exist in
/usr/share/applications (Recommended to put/use provided desktop file) If not, then you can create as follows:
sudo gedit /usr/share/applications/openoffice-writer.desktop
Then put following data in file
- Then save and close it.
- Give execution permission by
sudo chmod +x /usr/share/applications/openoffice-writer.desktop
Now set file as default as mentioned first.
openoffice-writer.desktop is only suggested example name. Use provided desktop file if exist.