<div dir="ltr">Please also see this post<div><a href="http://lists.freedesktop.org/archives/xdg/2011-September/012060.html">http://lists.freedesktop.org/archives/xdg/2011-September/012060.html</a><br></div><div style>and subsequent discussion on the issue.</div>
<div style><br></div><div style>Best,</div><div style>Aleksei</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Apr 21, 2013 at 10:35 PM, Hans de Goede <span dir="ltr"><<a href="mailto:hdegoede@redhat.com" target="_blank">hdegoede@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
Vincent, please do *not* send html mails to this mailinglist<br>
(or any FOSS related mailinglist for that matter), thanks!<div class="im"><br>
<br>
On 04/21/2013 08:19 PM, Vincent Gerris wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear fellow freedesktop users,<br>
<br>
As a longtime Linux Desktop user (currently Ubuntu <a href="tel:13.04" value="+3721304" target="_blank">13.04</a>) I continuously look for ways to make Linux even better on the desktop.<br>
I often do that by comparing it to the commercial vendors and listening to user feedback from my environment (especially from those I freed from Windows :) ).<br>
One of the things I came across was the way the filemanager behaves after selecting a file and choosing show in folder.<br>
The best example I can think of, is when a file is downloaded in Firefox and the user action "Open Containing Folder" is used.<br>
On Mac OS X and Windows, when this action is used, the folder is opened in the file manager and the file where the action was applied on, is selected.<br>
In Linux (more specific Fedora 17 and Ubuntu <a href="tel:13.04" value="+3721304" target="_blank">13.04</a> and probably most other distro's), only the folder is shown, while the file is not selected.<br>
>From a user point of view, that can be very disappointing, because you would have to find that file among a possible big pile of other files.<br>
<br>
I discussed with somebody who has quite some knowledge of the matter (and a lot of other Linux matters :), Hans de Goede<br>
</blockquote>
<br></div>
That would be me :)<div class="im"><br>
<br>
> and together we tried some things to see if this is possible in Linux and if so, how.<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
We made an assumption: xdg-open is used to select the file. That should be double checked.<br>
</blockquote>
<br></div>
Let me clarify this a bit, what Vincent means here, is that we assume that for things like<br>
the "Open containing folder" function in firefox' Download Manager apps use the desktops<br>
preferred applications config, looking what app to use for "text/directory".<br>
<br>
xdg-open, which will invoke ie gnome-open was an example I gave to Vincent of an app using<br>
the desktops preferred applications config.<br>
<br>
BTW I was a bit surprised that there is not standard for setting preferred applications for<br>
opening mime-type foo in a desktop agnostic manner. I noticed that exo-open and gnome-open<br>
seem to use the same underlying config, but I can not find any fdo standard for this ?<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Looking in that direction, we found that xdg-open does not provide a way to select a file in a folder.<br>
While nautilus is able to do this, as are konquerer and dolphin, only Thunar does not seem to have a way to do this.<br>
<br>
My question and partly proposal to developers would be to implement such functionality.<br>
For example, a command xdg-open-file-in-directory which will have similar functionality as xdg-open, but with functionality that will select the file that is being called upon.<br>
If the filemanager used does not have such functionality, it can behave as would xdg-open.<br>
If I understand correctly, that would involve adding an additional mime type, is that correct?<br>
</blockquote>
<br></div>
To clarify once more, the idea is to define a new mime type text/file-in-directory which<br>
apps can use for the functionality of opening the folder containing a file in the default<br>
file-manager. The difference with text/file would be that the associated action takes (a)<br>
path(s) to a file(s), rather then to directories.<br>
<br>
IE nautilus would advertise in its .destkop file that it can be used to open "files" of<br>
this type with a simple "nautilus %F" as action. konqueror and dolphin would also advertise<br>
this but with an Exec value of "konqueror --select %F" resp "dolphin --select %F".<br>
<br>
Apps which want to use the text/file-in-directory type will need to fallback to using<br>
text/directory (and passing the directory) when no default app is set for the type.<br>
<br>
Regards,<br>
<br>
Hans<br>
______________________________<u></u>_________________<br>
xdg mailing list<br>
<a href="mailto:xdg@lists.freedesktop.org" target="_blank">xdg@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/xdg" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/xdg</a><br>
</blockquote></div><br></div>