[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#857441: Bug#857443: Okular takes precedence over LibreOffice for ODT files



On Thu, 16 Mar 2017, Volker Diels-Grabsch wrote:
> Anyway, I reproduced this issue using the i3 window manager and Thunar
> as well as Midnight Commander. Nothing with KDE, except that Okular is
> unwantedly started.

I believe that doing something like this will change the preferences:

https://standards.freedesktop.org/mime-apps-spec/mime-apps-spec-1.0.html

% echo -e "[Default Applications]\napplication/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop" |sudo tee /usr/share/applications/mimeapps.list
[Default Applications]
application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop

But this clearly requires collaboration between a large set of
applications to produce a reasonable set of defaults.

Perhaps building a list of default applications by following the KDE
InitialPreference field or something similar would be good enough and
baking that into desktop-file-install or similar?

This might need to be raised more broadly on debian-devel. [I only
noticed this because it was breaking the ordering in /etc/mailcap.]

-- 
Don Armstrong                      https://www.donarmstrong.com

Creativity can be a social contribution, but only in so far
as society is free to use the results. 
 -- Richard M Stallman _GNU Manifesto_


Reply to: