<div dir="ltr">What is the best way to move forward?<div style>If I find some time, I can patch the script en publish it here?<br>Are there any other idea's? <br>cheers</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Apr 24, 2013 at 3:57 PM, Vincent Gerris <span dir="ltr"><<a href="mailto:vgerris@gmail.com" target="_blank">vgerris@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I do not have the same know how like you both have, but I'll try to keep the discussion focussed on the original question.<br>Firtsly, our question is about expending capabilities when a file manager is used, assuming most Linux desktop apps use this.<br>


If I look at the description here:<br><a href="http://portland.freedesktop.org/xdg-utils-1.0/xdg-open.html" target="_blank">http://portland.freedesktop.org/xdg-utils-1.0/xdg-open.html</a><div>there already is a difference between an URL and 'the rest'.</div>

<div>We took a look at the xdg-open script and noticed it is determined which file manager is being used.<br>There could be some added if-thens in there, arranging for the added --select option call to the filemanager, if it is supported?</div>

<div>Perhaps no need for another mime type either in that situation and it would leave other options open, right?<br>This assumes that a user would always want a file to be selected when a file is opened by a file manager, which is the case on other platforms and besides that: it is what we are looking for :).<br>

<div><br></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 23, 2013 at 1:36 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,<div><br>
<br>
On 04/23/2013 01:17 PM, David Faure wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Monday 22 April 2013 22:35:38 Hans de Goede wrote:<br>
</blockquote>
<br></div>
<snip><div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


The recently discussed (but not yet formalized) "Intents" spec will allow<br>
to do exactly that:<br>
1) pick the preferred file manager from .desktop files<br>
(including the possibility for the user to change preference using a local<br>
file, similar to mimeapps.list)<br>
2) start it if not already running (knowing for sure which DBus name it<br>
will register under)<br>
</blockquote>
<br>
This is inherently racy, and when we loose the race, depending on the<br>
filemanager in question we may end up with 2 different windows.<br>
</blockquote>
<br>
DBus activation is not racy. You cannot end up with two processes.<br>
And if the activated service starts without a window, you cannot end up with 2<br>
windows either.<br>
</blockquote>
<br></div>
<sigh>, the steps 1 and 2 *you* mentioned above, are not about dbus activation,<br>
if we do dbus-activation, we don't need to check if the file-manager is running<br>
at all, but we can NOT do dbus activation, since that does not allow selecting<br>
which file manager is the users preferred one.<br>
<br>
So dbus-activation is not an option. Unless we give each file manager a<br>
unique service name, which does not seem like a good idea to me...<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Also most<br>
filemanagers will throw up a default window, and then one more for the dbus<br>
call, so if the filemanager is not running you end up with 2 windows.<br>
nautilus has --no-default-window to fix this, others may have something too,<br>
but this is not exactly simplifying the problem.<br>
</blockquote>
<br>
And konqueror has --silent. But you don't have to deal with any of that<br>
yourself; when implementing the intents spec, the<br>
nautilus/konqueror/dolphin/<u></u>etc. developers will provide appropriate .service<br>
files (including the right Exec line for not showing a window on startup).<br>
</blockquote>
<br></div>
And how do we deal with multiple apps (ie nautilus and konqueror) offering the<br>
same dbus service name? AFAIK dbus currently does not deal with this.<br>
<br>
Regards,<br>
<br>
Hans<div><div><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>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>