0

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?

Andros
  • 41

3 Answers3

2

Changing default application in GUI

  1. Right-click your .docx file.
  2. Click in Properties.
  3. Select Open With tab.
  4. Select application from lists Related Applications or Other Application.
  5. Click in Set as default.
  6. Close Properties window.

If you want to rollback your change:

  1. Follow steps 1 to 3.
  2. Click in Reset.
  3. Close Properties window.
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
  • 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