New `MimeType` fields in .desktop

Jehan Pagès jehan.marmottard at gmail.com
Mon May 3 11:17:57 UTC 2021


Hi!

On Mon, May 3, 2021 at 11:59 AM David Faure <faure at kde.org> wrote:

> On jeudi 18 février 2021 03:17:45 CEST Eli Schwartz wrote:
> > On 2/17/21 5:52 PM, Bastien Nocera wrote:
> > > The order for mime-types with no defaults has nothing to do with a
> > > "shared database", it's implementation specific, as it's not codified
> > > in the mime specs. GLib probably behaves differently than Qt does,
> > > which means that the file managers using either of those are likely to
> > > behave differently.
> >
> > Qt's native support for opening files in accordance with XDG is to
> > invoke /usr/bin/xdg-open.
>
> The actual code for choosing preferred applications for a mimetype, in the
> Qt/
> KDE world, isn't in Qt, but in KDE Frameworks (KService).
>
> I'm late to this thread, but before we talk about adding even more
> complexity
> to the solution of choosing an app for a mimetype, I'd like to understand
> why
> https://specifications.freedesktop.org/mime-apps-spec/latest/
> doesn't solve the issue. If the distro's mimeapps.lst says
> image/jpeg=gwenview.desktop;gimp.desktop;
> then JPEG files will be opened in gwenview (if installed) rather than in
> GIMP,
>

These are defaults or user customization. It's nice but cannot be
exhaustive by definition. It won't ever take into account all software.
And more to the point: it doesn't talk/handle at all about intent which is
the whole point of this thread.

Jehan


> PS: the above link points to an out of date version of the spec, does
> anyone
> know how to fix the setup so that the mapping from web-export/specs.idx
> actually ends up on the website?
> Has this been updated with the move to gitlab?
>
> --
> David Faure, faure at kde.org, http://www.davidfaure.fr
> Working on KDE Frameworks 5
>
>
>
> _______________________________________________
> xdg mailing list
> xdg at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/xdg
>


-- 
ZeMarmot open animation film
http://film.zemarmot.net
Liberapay: https://liberapay.com/ZeMarmot/
Patreon: https://patreon.com/zemarmot
Tipeee: https://www.tipeee.com/zemarmot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/xdg/attachments/20210503/b4b9513e/attachment.htm>


More information about the xdg mailing list