<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 5:15 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 15:53, Thomas Kluyver <<a href="mailto:thomas@kluyver.me.uk" target="_blank">thomas@kluyver.me.uk</a>> <br>
wrote:<br>
> I can see what you're saying, but I don't think it's ridiculous to <br>
> suggest that a desktop file could encode some indication of how well <br>
> an application handles a particular file type. You could think of <br>
> this as describing 'can open' vs 'can import'.<br>
<br>
I agree. In addition to that, there is also viewer vs. editor <br>
distinction. Sometimes I want to view files but other times I want to <br>
edit them. These are two different actions and could have different <br>
applications associated to them, since the editors are optimized for <br>
editing but not really fit for viewing, and the opposite is true for <br>
viewers. Unfortunately, the desktop entries do not allow specifying <br>
more than that the program can “open” a file, which lacks semantic <br>
subtlety.<br></blockquote><div><br></div><div>That's an interesting approach. But since it implies a choice from the start anyway, we would end up in contextual menu (thinking in term of default interaction). This is why I was thinking it is better to not do this and just see the files as their most intended intent (which would be anyway a viewing or an edition format).<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>
Here are examples of files I often use in two different modes as a web <br>
developer:<br>
<br>
- HTML file is viewed in Web Browser but edited in a text editor.<br></blockquote><div><br></div><div>HTML is a very interesting special case, because it is one of the exceptions where it is both a display and an edit format. Then in this case, it's a hard choice. On one hand since you have more people just viewing HTML files, it feels perfectly logical to use an HTML viewer (a.k.a. web browser). On the other hand, normally when you have HTML files lying around in your local disks (not online!), this is because you are a developer willing to edit them (though you can save html from a browser and I could definitely see someone surprised to double-click it later and be welcome by HTML tags in an editor).</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">
- Photos can be viewed in e.g. Eye of GNOME but edited in GIMP.<br></blockquote><div><br></div><div>If by photos, you mean for instance JPEG images, then this is a display format (a very bad one at that, lossy, with ugly display artifacts…). It is meant for viewing, not editing. Of course I am not saying you should not edit it, we all edit JPEG images, I do it too. But it's definitely not meant for being a good photo source for further edit. And most people (even the ones who edit a lot of JPEG, I think) would probably prefer a simple viewer as default action when double-clicking for instance.</div><div><br></div><div>What is the exact interaction you have in mind which would be the consequence of making a viewer/editor differentiation?</div><div><br></div><div>Jehan<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
<br>
_______________________________________________<br>
xdg mailing list<br>
<a href="mailto:xdg@lists.freedesktop.org" target="_blank">xdg@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/xdg" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/xdg</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>