<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello Jehan and All,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
On Tuesday, February 16, 2021 11:57 AM, Jehan Pagès <jehan.marmottard@gmail.com> wrote:</div>
<div id="appendonsend"></div>
<blockquote style="margin-top:0; margin-bottom:0">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div>
<div>
<div dir="ltr">
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Tue, Feb 16, 2021 at 5:55 PM Bollinger, John C <<a href="mailto:John.Bollinger@stjude.org">John.Bollinger@stjude.org</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello all,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I think the decision to omit MIME-type priority is about scope, not about concerns regarding specific (mis)uses.  Desktop files can express that an application is _suitable_ for handling files of certain types, but it is not their role to convey system policy,
 such as which application actually should handle any particular file.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
With regard to the GIMP example, then, I do not see a missing feature of the desktop entry, but instead clumsy behavior of the GIMP installer -- probably as used by an automated package-installation script, for I think I recall that a manual installation of
 the GIMP provides a conventional dialog for selecting the image formats for which it should be the default application.</div>
</div>
</blockquote>
<div><br>
</div>
<div>I am a bit confused about what you are talking about. I am talking about the .desktop file specification, hence I am obviously talking about Linux distribution installation. We don't provide an "installer" or "package-installation script" of any sort for
 Linux (well we have a Flatpak, but I can ensure you we don't do what you say, because I wrote most of this package manifest; and anyway Flatpak doesn't have this kind of ability, it also only provides desktop files).<br>
</div>
<div>It looks to me like you are talking about our Windows installer, which is a completely different topic (yes file association works differently on Windows).</div>
</div>
</div>
</div>
</div>
</blockquote>
<div>
<div><br>
</div>
</div>
<div>By "the GIMP installer" I am talking about those software components that effect the installation of the GIMP in any particular situation of interest, inclusive of components provided by third-party packagers.  If I have misremembered the feature set of
 its makefile / manual installation script then my apologies, but that is entirely tangential.</div>
<blockquote style="margin-top:0; margin-bottom:0">
<div>
<div>
<div dir="ltr">
<div class="x_gmail_quote">
<div><br>
</div>
<div>For GNU/Linux systems (and possibly *BSD?), as far as I know, the only thing we provide (relatively to file format association) is the desktop file where we list supported formats, as is the standard on such systems. We don't have an installer and certainly
 no "automated installation script", neither "dialog for selecting the image formats for which it should be the default application"; so I have no idea what kind of clumsy behavior of ours you mention.<br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div>
<div dir="ltr">
<div><br>
</div>
<div>I would find it extremely surprising if unpackaged distributions the GIMP for any platform did not come with any mechanism for performing an installation -- no script, no "install" target in a makefile, nothing.  I know that packaged (RPM / DEB / etc.)
 distributions of the GIMP have installation components, as it is inherent in these formats.</div>
</div>
</div>
<blockquote style="margin-top:0; margin-bottom:0">
<div>
<div>
<div dir="ltr">
<div class="x_gmail_quote">
<div><br>
</div>
<div>Or maybe you are talking about some specific packaging scripts by distribution packagers (are they really distribs which do what you say, though?). Then this is exactly the problem I want to solve, packagers cannot know and set up format association rules
 for every software out there (Debian has more than 50,000 packages; same for Fedora, etc.).</div>
</div>
</div>
</div>
</div>
</blockquote>
<div>
<div>
<div dir="ltr">
<div class="x_gmail_quote">
<div><br>
</div>
</div>
</div>
</div>
</div>
<blockquote style="margin-top:0; margin-bottom:0">
<div>
<div>
<div dir="ltr">
<div class="x_gmail_quote">
<div>Actually the Desktop or AppData specification got created exactly for this reason: so that distribution don't have to manage themselves the things that the software devs know the best (software title, description, icon, mime type association, etc.).<br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div>
<div dir="ltr">
<div><br>
</div>
<div>And only that tiny minority of packages that provide desktop files are relevant to the discussion -- hundreds, not tens of thousands.  And among those, only the ones that include MIME-type associations at all.  I see a lot of packages, and I see far more
 desktop files than most people do, and I can assure you that very few of the desktop files I see specify MIME associations.</div>
<div><br>
</div>
<div>But this, too, is missing the point.  It is not individual packagers' responsibility to know MIME-type associations for all the packages there are, nor even to choose default associations for all the MIME types in the MIME database.  Nor is any of that
 the responsibility of the maintainers of any particular piece of software.  The responsibility of all those people in this area is to avoid wantonly overriding the local policy of individual systems on which the software is installed.</div>
<div><br>
</div>
<div>Simply dropping a desktop file on the filesystem is not wanton in this regard, because doing so does not express any kind of policy.  This is explicit in the provisions of the desktop spec that the proposal at hand seeks to change.  Instead, the XDG mechanism
 for assigning default MIME-type associations is part of the MIME Applications Specification (<a href="https://specifications.freedesktop.org/mime-apps-spec/mime-apps-spec-latest.html" id="LPlnk">https://specifications.freedesktop.org/mime-apps-spec/mime-apps-spec-latest.html</a>).<br>
</div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1">
<div id="LPBorder_GTaHR0cHM6Ly9zcGVjaWZpY2F0aW9ucy5mcmVlZGVza3RvcC5vcmcvbWltZS1hcHBzLXNwZWMvbWltZS1hcHBzLXNwZWMtbGF0ZXN0Lmh0bWw." class="LPBorder149618" style="width: 100%; margin-top: 16px; margin-bottom: 16px; position: relative; max-width: 800px; min-width: 424px;">
<table id="LPContainer149618" role="presentation" style="padding: 12px 36px 12px 12px; width: 100%; border-width: 1px; border-style: solid; border-color: rgb(200, 200, 200); border-radius: 2px;">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td style="width: 100%;">
<div id="LPTitle149618" style="font-size: 21px; font-weight: 300; margin-right: 8px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; margin-bottom: 12px;">
<a target="_blank" id="LPUrlAnchor149618" href="https://specifications.freedesktop.org/mime-apps-spec/mime-apps-spec-latest.html" style="text-decoration: none; color: var(--themePrimary);">Association between MIME types and applications</a></div>
<div id="LPDescription149618" style="font-size: 14px; max-height: 100px; color: rgb(102, 102, 102); font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; margin-bottom: 12px; margin-right: 8px; overflow: hidden;">
The freedesktop.org Shared MIME database provides a single way to store static information about MIME types and rules for determining a type.. The freedesktop.org Desktop Entry specification allows applications to announce which MIME types they support.. This
 specification solves the remaining issues: which application should open a file by default, how to let the user change the default ...</div>
<div id="LPMetadata149618" style="font-size: 14px; font-weight: 400; color: rgb(166, 166, 166); font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif;">
specifications.freedesktop.org</div>
</td>
</tr>
</tbody>
</table>
<div id="LPCloseButtonContainer149618" class="_2G1t7TsffMpTdsxcutbAaz" tabindex="0" title="Remove link preview" role="button">
<i data-icon-name="Cancel" aria-hidden="true" id="LPCloseButton149618" class="_17cZVF34hdKub7ce2cOnAW root-85"></i></div>
</div>
</div>
<br>
</div>
</div>
<blockquote style="margin-top:0; margin-bottom:0">
<div>
<div>
<div dir="ltr">
<div class="x_gmail_quote">
<div><br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Moreover, I don't think that splitting the supported MIME types into two tiers would really solve the underlying problem.  It would give hints to installers and management software that they don't get now, but who's to say, for example, that just because XCF
 is its native format, GIMP ought to take over from some other application as the default handler for that type? 
</div>
</div>
</blockquote>
<div><br>
</div>
<div>First of all, I am talking about *default* behavior. This is why I even said explicitly in my email:</div>
<div><br>
</div>
<div>> Of course, if a format-software association was set manually, it would be best to never let automatic re-association with another software happen.</div>
<div><br>
</div>
<div>So if one sets explicitly any other software as default handler of XCF file, no of course, GIMP should not take over.</div>
<div><br>
</div>
<div>But if they don't, yes it is perfectly reasonable that after you installed GIMP, the system sets it as being the default handler for XCF. Same as if Photoshop was available on Linux, it should be the default for PSD files. Sorry to say so, but saying it
 could be better otherwise is just silly.</div>
</div>
</div>
</div>
</div>
</blockquote>
<div>
<div dir="ltr">
<div class="x_gmail_quote">
<div><br>
</div>
<div>I agree that where no default application has been explicitly configured, users have no genuine reason to rely on default applications to remain stable.  But that does not imply that some applications should be able to claim to be more equal than others
 with respect to particular file types.  That some format is native for a given application does not imply that that application should be the one used by default to handle such files.</div>
</div>
</div>
</div>
<blockquote style="margin-top:0; margin-bottom:0">
<div>
<div>
<div dir="ltr">
<div class="x_gmail_quote">
<div><br>
</div>
<div>Obviously for some people specific usage, you might want some different association. Maybe some people want that a double-click on their XCF files end up in another software and that's fine. That's why manual association settings exist. But you cannot
 pretend this is the default expectation.<br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div>
<div dir="ltr">
<div><br>
</div>
<div>Perhaps not for XCF files in particular, though I'm inclined to think that people's expectations vary more than you seem to suppose.  But there is a wide variety of file types that the XDG specifications we're talking about affect, and the case is less
 clear cut for many of them.  Even for many that the GIMP can handle.<br>
</div>
</div>
</div>
<blockquote style="margin-top:0; margin-bottom:0">
<div>
<div>
<div dir="ltr">
<div class="x_gmail_quote">
<div> </div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
And what if multiple applications have some of the same native types?  (Consider text editors, for example.)  Hints notwithstanding, it's still a policy and system management question that desktop files are not well positioned to address.</div>
</div>
</blockquote>
<div><br>
</div>
<div>I have a hard time understanding what you are trying to prove. You cannot handle all possible cases, this is completely obvious. The computer is not in people's head. So yeah there are no ideal work-for-all solution for fully ambiguous case by nature.</div>
<div>Of course when several software are on the exact same field and support the exact same formats, the system cannot choose for them.</div>
</div>
</div>
</div>
</div>
</blockquote>
<div>
<div>
<div dir="ltr">
<div class="x_gmail_quote">
<div><br>
</div>
<div>What I am saying is that desktop files are not the right tool for the job.</div>
</div>
</div>
</div>
</div>
<blockquote style="margin-top:0; margin-bottom:0">
<div>
<div>
<div dir="ltr">
<div class="x_gmail_quote">
<div><br>
</div>
<div>I am talking about improving the hints based off knowledge of less ambiguous cases (for formats which are exactly in the intent of a given software).</div>
</div>
</div>
</div>
</div>
</blockquote>
<div>
<div>
<div dir="ltr">
<div><br>
</div>
<div>The right approach is to use the existing XDG specification that covers this area: the MIME Applications specification that I already brought up.  One does not have to guess whether there is an explicitly configured default application for a given MIME
 type -- one can _check_, either on a system level or on a per-user level, as appropriate.  And if one is confident in their justification for setting an application as the default for a given MIME type, then one can do that explicitly.  In fact, inasmuch as
 the MIME Applications spec provides for a priority list of default applications for each MIME type, it's not even a question of setting a default only if none is already configured.  One can just<span style="color:rgb(0, 0, 0);font-size:14px;background-color:rgb(255, 255, 255);display:inline !important"><span> </span>(for
 example)</span> add the GIMP to the end of the list of default handlers for XCF, creating a new entry in the appropriate mimeapps.list file if necessary.  That serves even if there is initially a different assigned default.</div>
<div><br>
</div>
<div><br>
</div>
<div>John</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
<blockquote style="margin-top:0; margin-bottom:0">
<div>
<div>
<div dir="ltr">
<div class="x_gmail_quote">
<div><br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div>
<div dir="ltr">
<div class="x_gmail_quote"><br>
</div>
</div>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="2"><br>
Email Disclaimer: www.stjude.org/emaildisclaimer<br>
Consultation Disclaimer: www.stjude.org/consultationdisclaimer<br>
</font>
</body>
</html>