Manjaro ships with OnlyOffice DesktopEditors and I think that is a very nice office suite. For most people, it does everything you need. However, I do need LibreOffice available as backup, not as default associated suite.
Unfortunately, After installing LibreOffice Fresh (via pacman or pamac), LibreOffice automatically becomes the default for most Office files. That was not my goal.
To make sure OnlyOffice is the default again for all filetypes supported by OnlyOffice, I uninstalled OnlyOffice, then installed it again.
Even after reinstalling OnlyOffice DesktopEditors, it is still not the default application! It is second to LibreOffice in /usr/share/applications/mimeinfo.cache
.
I did the same for gThumb, after installing GIMP, GIMP steals the default system file associations and the only way to fix this is manually for current user (via xdg-mime
) or manually per file via context menu.
Even if I pamac remove gthumb
and pamac install gthumb
, GIMP stays associated as default!
I know I can manually (via context menu) change the default app. But I don’t want to do that for each and every filetype. That is A LOT of manual work. I also know I can run
xdg-mime default onlyoffice.desktopeditors text/rtf
for every filetype. Again, enormous hassle to figure out all mimetypes. Also this would only apply to the current user.
I filed a bug with OnlyOffice, but they say the pamac package is not an official package:
OnlyOffice does not assiociate itself as the primary office app · Issue #879 · ONLYOFFICE/DesktopEditors · GitHub but then I saw it is also happening for Gthumb!
Is this something the package maintainer: Software Center can solve?
unrelated issue with xdg-mime (solved after initial post)
The xdg-mime command together with update-desktop-database ~/.local/share/applications/
has no effect, for example
xdg-mime default onlyoffice.desktopeditors.desktop text/rtf
It does add entries to $HOME/.config/mimeapps.list
but nothing changes.
EDIT: I missed “org.” The xdg-mime
command does work correctly.