I cannot set as default program libre office instead of wps for docx files only. I can set libre office as default for doc files though. Why?
Asked
Active
Viewed 3,805 times
3 Answers
2
Changing default application in GUI
- Right-click your .docx file.
- Click in Properties.
- Select Open With tab.
- Select application from lists Related Applications or Other Application.
- Click in Set as default.
- Close Properties window.
If you want to rollback your change:
- Follow steps 1 to 3.
- Click in Reset.
- Close Properties window.

Thiago Rider Augusto
- 1,640
-
I have taken the above steps but wps office remains default only for docx files. – Andros Jul 07 '16 at 09:58
1
Pulled from here, use your editor of choice (and sudo/gksudo, thanks Weboide) to modify /usr/share/applications/defaults.list
to have the following line:
application/docx=wps-office-wps.desktop
For all the other file types relating to Office programs (e.g. xls, doc), you can set a different editor e.g.
application/xlsx=libreoffice-writer.desktop

crimsonspectre
- 649
-
You forgot to mention, you'll need to run the editor as root:
gksudo gedit /usr/share/applications/defaults.list
is one way to do it using gedit on a regular ubuntu install. – Weboide Jul 05 '16 at 14:14 -
I have opened the editor but I am not sure how to modify the line correctly to set libre office as the defaukt program – Andros Jul 07 '16 at 09:58
-
@Andros, what is currently shown next to the "application/docx" and "application/doc" lines in that file? – crimsonspectre Jul 07 '16 at 12:55
-
It shows "application/wps-office.docx=wps-office-wps.desktop" and "application/wps-office.doc=wps-office-wps.desktop" thoug doc files has been changed to libre office as deafault through the right click menu – Andros Jul 07 '16 at 16:09
-
If you are still experiencing the doc files being opened with wps rather than libreoffice, you will need to edit the defaults.list file as above. It is possible that the Nautilus (right-click) file open option is controlled by another file, but the defaults.list file overrides it. – crimsonspectre Jul 08 '16 at 07:09
0
After a fresh re-instalation of both libre and wps I can now set libre as default through the right click menu

Andros
- 41