Score:1

How to set LibreOffice as the default app to open Pages documents

in flag

Since LibreOffice can open and edit Pages documents, I would like to set LibreOffice as the default app to open Pages, Numbers, and Keynote documents. For the sake of this question, I will refer to all of these collectively as .pages documents, since the process will likely be the same for all of these.

The problem is that .pages documents are just renamed .zip files which can be uncompressed and opened by any archive utility.

Opening the Pages documents from File > Open in Libreoffice functions how I want it to. Also, in Nautilus, right-clicking a Pages file, choosing "Open with other application", then choosing Libreoffice works fine.

The problem is that if I set the default application for Pages documents to be Libreoffice, it also changes the default application for .zip files.

Checking the mime type for pages documents reveals the following:

$ xdg-mime query filetype ~/Documents/Document.pages
application/zip

How would I set the default application for .pages documents to LibreOffice?

2br-2b avatar
in flag
If it is simple, also, how would you choose a new default icon for `.pages` documents? This is probably another question, but if it's easy to answer, feel free to add it!
in flag
This [requires changes to be made in two places](https://bugs.launchpad.net/ubuntu/+source/mime-support/+bug/1878617) and may be done for you in a future release of Ubuntu. There is no "simple way" to do it correctly at this time, though.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.