<br><br><div class="gmail_quote">On Wed, Jan 19, 2011 at 1:18 PM, Sascha Silbe <span dir="ltr"><<a href="mailto:sascha-ml-reply-to-2011-1@silbe.org">sascha-ml-reply-to-2011-1@silbe.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Excerpts from Martin Abente's message of Wed Jan 19 16:20:35 +0100 2011:<br>
<div class="im"><br>
> Add activity_id, object_id and uri options.<br>
><br>
> This patch is necessary in order to use Browse<br>
> as the default http uri handler in sugar.<br>
<br>
</div>Can you give a bit more detail about why it is needed and what it's<br>
used for, please?<br></blockquote><div><br>It is needed because is a common feature in many activities, so there will be no need to re-write this on each activity. <br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Who would invoke the "default http uri handler" and when / why?<br>
<br></blockquote><div><br>When you right-click on any link, and use the "open link" option, gtk.show_uri will be called, internally this calls to gio.app_info_get_default_for_uri_scheme('http'), and its internal implementation takes the arguments from the gconf (harcoded) value path: /desktop/gnome/uri-handlers/http/command.<br>
<br>Then all we need to do is to replacing the gconf value for "sugar-launch org.laptop.WebActivity --uri %s" and voila!<br><br>Even though this method is problematic in sugar+gnome builds, we can still use sugar-launch (with this patch) to open custom links with browse (or any other sugarized browser) passing the --uri argument.<br>
<br>I am sure other activities can benefit from this patch too.<br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Sascha<br>
<font color="#888888"><br>
--<br>
<a href="http://sascha.silbe.org/" target="_blank">http://sascha.silbe.org/</a><br>
<a href="http://www.infra-silbe.de/" target="_blank">http://www.infra-silbe.de/</a><br>
</font></blockquote></div><br>