<div dir="ltr"><div dir="ltr">Hi!<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 22, 2021 at 10:06 AM Charles Plessy <<a href="mailto:charles-listes%2Bxdg@plessy.org">charles-listes+xdg@plessy.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> On Thu, Feb 18, 2021 at 4:00 PM Charles Plessy<br>
><br>
> > Instead, how about having a new field (for instance ExtraMimeType) for<br>
> > indicating the lower-priority media types. Then software like GIMP<br>
> > could "demote" them in the new field, and at worse if the new field is<br>
> > not parsed, then the native or intended types will still be recognised.<br>
<br>
Le Thu, Feb 18, 2021 at 04:51:49PM +0100, Jehan Pagčs a écrit :<br>
> <br>
> If we do this, we change the meaning of MimeType field for these programs<br>
> and we actually create the problem you mentioned for the other<br>
> (out-of-intent) formats. Indeed we usually don't want GIMP to be the<br>
> default for PNG, JPEG, PDF or SVG. Usually we have a much better default<br>
> for all of these.<br>
> <br>
> But sometimes when there is absolutely no other software handling these<br>
> formats, GIMP still is a nice fallback.<br>
[...]<br>
> So even though all these MIME types are not GIMP primary intent, it's still<br>
> nice that programs supporting the old desktop spec only would know that<br>
> GIMP can at least serve as a suitable fallback.<br>
<br>
Hi Jehan,<br>
<br>
I think that you underlined the tradeoff well.<br>
<br>
We can keep full backwards compatiblity at the expense of a more complex<br>
procedure. The issue I have with your proposal is that a large number<br>
of media types will be listed twice in each Desktop entry, and it<br>
complicates parsing for those who want to extract information about<br>
priority.<br>
<br>
But partially breaking compatibility as I propose is not good for people<br>
installing by themselves new applications on old desktop systems during<br>
the transition, as they will not see the application listed as capable<br>
to open all the media types it supports.<br></blockquote><div><br></div><div>I re-read my email and realize it's not just the transition period or the backward compatibility.</div><div>My last example about an hypothetical viewer which would have XCF display support shows the problem even after the transition period, when all software would have updated their desktop file.</div><div><br></div><div>Let me show with your proposal (I don't write real MIME types, because I'm lazy and we all understand anyway):<br></div><div>- GIMP would have: MimeType=XCF / <span class="gmail-im">ExtraMimeType=JPG,PNG,PDF</span></div><div><span class="gmail-im">- A viewer would have (with XCF support): MimeType=XCF,<span class="gmail-im">JPG,PNG,PDF</span></span></div><div><span class="gmail-im"><span class="gmail-im"><br></span></span></div><div><span class="gmail-im"><span class="gmail-im">Here XCF is just on the same level as JPG/PNG/PDF for the viewer (it is just another displayable format, it has conceptually no more or less a meaning, hence stays in the same field).<br></span></span></div><div><span class="gmail-im"><span class="gmail-im">Who gets default handling of XCF? We end up in the same situation as now, and it could be GIMP or the viewer according to whatever more-or-less-random/arbitrary algorithm (no way to know otherwise), because it looks like we are saying that the viewer has all these formats as its native support. Or else, we could make here again some even-more complicated algorithm (considering the fact that viewer has no <span class="gmail-im">ExtraMimeType, but GIMP has, we consider MimeType of GIMP as higher priority; but what if the viewer ever had an <span class="gmail-im">ExtraMimeType field for some other formats?</span>).<br></span></span></span></div><div><span class="gmail-im"><span class="gmail-im"><span class="gmail-im"><br></span></span></span></div><div><span class="gmail-im"><span class="gmail-im"><span class="gmail-im">In my proposition:</span></span></span></div><div><div>- GIMP would have: MimeType=XCF,<span class="gmail-im">JPG,PNG,PDF</span> / <span class="gmail-im">NativeMimeType=XCF</span></div><div><span class="gmail-im">- <span class="gmail-im">A viewer would have (with XCF support): MimeType=XCF,<span class="gmail-im">JPG,PNG,PDF</span></span></span></div><div><span class="gmail-im"><span class="gmail-im"><span class="gmail-im"><br></span></span></span></div><div><span class="gmail-im"><span class="gmail-im"><span class="gmail-im">Well here absolutely no indecision. Only one of them has the very semantic <span class="gmail-im">NativeMimeType. It obviously takes precedence over XCF support.<br></span></span></span></span></div><div><span class="gmail-im"><span class="gmail-im"><span class="gmail-im"><span class="gmail-im"><br></span></span></span></span></div><div><span class="gmail-im"><span class="gmail-im"><span class="gmail-im"><span class="gmail-im">So it looks to me like we get better transition + backward compatibility + better end-result, no? 🙂</span></span></span></span></div><div><span class="gmail-im"><span class="gmail-im"><span class="gmail-im"><span class="gmail-im"><br></span></span></span></span></div><div><span class="gmail-im"><span class="gmail-im"><span class="gmail-im"><span class="gmail-im">Jehan<br></span></span></span></span></div><span class="gmail-im"><span class="gmail-im"><span class="gmail-im"></span></span></span></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Whichever solution gets consensus, I would be happy to see things moving<br>
forwards.<br>
<br>
Have a nice day,<br>
<br>
Charles<br>
<br>
Maintainer of the mime-support, media-types and mailcap packages in Debian.<br>
<br>
-- <br>
Charles Plessy Nagahama, Yomitan, Okinawa, Japan<br>
Tooting from work, <a href="https://mastodon.technology/@charles_plessy" rel="noreferrer" target="_blank">https://mastodon.technology/@charles_plessy</a><br>
Tooting from home, <a href="https://framapiaf.org/@charles_plessy" rel="noreferrer" target="_blank">https://framapiaf.org/@charles_plessy</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">ZeMarmot open animation film<br><a href="http://film.zemarmot.net" target="_blank">http://film.zemarmot.net</a><br>Liberapay: <a href="https://liberapay.com/ZeMarmot/" target="_blank">https://liberapay.com/ZeMarmot/</a><br>Patreon: <a href="https://patreon.com/zemarmot" target="_blank">https://patreon.com/zemarmot</a><br>Tipeee: <a href="https://www.tipeee.com/zemarmot" target="_blank">https://www.tipeee.com/zemarmot</a></div></div>