<div dir="ltr"><div dir="ltr">Hi!<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 17, 2021 at 7:22 PM Jan Tojnar <<a href="mailto:jtojnar@gmail.com">jtojnar@gmail.com</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 Wed, Feb 17, 2021 at 18:52, Jehan Pagès <br>
<<a href="mailto:jehan.marmottard@gmail.com" target="_blank">jehan.marmottard@gmail.com</a>> wrote:<br>
> If by photos, you mean for instance JPEG images, then this is a <br>
> display format (a very bad one at that, lossy, with ugly display <br>
> artifacts…). It is meant for viewing, not editing. Of course I am <br>
> not saying you should not edit it, we all edit JPEG images, I do it <br>
> too. But it's definitely not meant for being a good photo source for <br>
> further edit. And most people (even the ones who edit a lot of JPEG, <br>
> I think) would probably prefer a simple viewer as default action when <br>
> double-clicking for instance.<br>
<br>
I overedited it a bit. Initially, I wrote bitmap images, as screenshots <br>
in PNG format are the most common type of images that I edit.<br>
<br>
> What is the exact interaction you have in mind which would be the <br>
> consequence of making a viewer/editor differentiation?<br>
<br>
For example, to edit a screenshot file in Pictures directory. In <br>
Nautilus, I currently have to click “open with other application” <br>
and then find GIMP in the dialogue. I just do not bother and drag the <br>
file on manually started instance of GIMP instead.<br>
<br>
I imagine that if the MIME types in desktop files were annotated with <br>
intent, Nautilus could run the mime-apps-spec algorithm [1] twice, <br>
filtering for “view” intent one time and “edit” intent the <br>
second time, and it could show edit action in the context menu if they <br>
differ.<br></blockquote><div><br></div><div>That's an interesting idea. But then it requires to have the format view/edit expectation written somewhere so that you know what your double-click should end up doing: will it run the default view program or the default edit program for this MIME type?</div><div><br></div><div>So basically, what I guess you are proposing is (workflow-wise):</div><div><br></div><div>If a MIME type represents a format made for viewing:</div><div>- double-clicking/default action will open the default viewing software associated with this MIME type.</div><div>- contextual menu will propose an alternative "Edit" item (which will run the default edit software associated with this MIME type) and the usual "Open with another application" to get the full list of associations.</div><div><br></div><div>If the MIME type is tagged as being an edit format, then this is obviously reversed.</div><div><br></div><div>That's an interesting idea, though in this case, it requires much more changes and I'm not sure if it doesn't get too complicated for most people (who don't read specs), in other words over-engineered. The simpler single association seems to be much more straightforward.</div><div><br></div><div>This was why I took some care so that what I was proposing would not change at all how people interact with applications (it only gives some hints for better defaults which is a rather invisible process). It is a dev-visible only change (and not filling the new fields does not break your desktop file, so it's even backward compatible).</div><div><br></div><div>So I'm not so sure what to think of your proposition (even though it's interesting).<br></div><div><br></div><div>Jehan<br></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>
[1]: <br>
<a href="https://specifications.freedesktop.org/mime-apps-spec/latest/ar01s05.html" rel="noreferrer" target="_blank">https://specifications.freedesktop.org/mime-apps-spec/latest/ar01s05.html</a><br>
<br>
<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>