<div dir="ltr">Otra alternativa es que manejes el evento activate-link<div><a href="https://developer.gnome.org/gtk3/stable/GtkLinkButton.html">https://developer.gnome.org/gtk3/stable/GtkLinkButton.html</a><br></div><div><br></div><div>Gonzalo</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 11, 2014 at 10:07 AM, Gustavo Duarte <span dir="ltr"><<a href="mailto:gus.duarte@gmail.com" target="_blank">gus.duarte@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"><div>Just other info:</div><div><br></div>I tried, add line "<span>x-scheme-</span><span>handler</span><span>/http                 org.laptop.WebActivity "  on /usr/share/sugar/data/mime.default on a XO 1.75 with Sugar 0.98 and the same results. URL Links are opened with Firefox.</span><div><span><br></span></div><div><span><br></span></div><div><span>Seems x-scheme-handler mime types aren't well managed by Sugar.</span></div><div><span><br></span></div><div>Regards.</div><div><br></div><div><span><br></span></div><div><span><br></span></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 11, 2014 at 10:56 AM, Gustavo Duarte <span dir="ltr"><<a href="mailto:gus.duarte@gmail.com" target="_blank">gus.duarte@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">Hi Jerry,<div><br></div><div>My mistake, i missed write down the line added on /usr/share/sugar/data/mime.default file.</div><div><br></div><div>I added exactly this line: </div><div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px">x-scheme-handler/http                   org.laptop.WebActivity</span></div><div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px">However after that, links were still opened with Firefox, I agree with you, tat should be work, but i don't know why.</span></div><div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px"><br></span></div><div>Any way, I found a workaround, adding the settings of ~/.local/share/applications/mimeapps.list on sugar-session. For the right setting when sugar is starting.</div><div><br></div><div>And also added a script on /etc/lightdm/lightdm.conf to setting the right ones for Gnome, when it is starting.</div><div><br></div><div>Thanks.</div><span><font color="#888888"><div><br></div><div>Gustavo.</div><div><br></div><div> </div><div><span style="font-size:13px"><br></span></div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 10, 2014 at 8:10 PM, Jerry Vonau <span dir="ltr"><<a href="mailto:me@jvonau.ca" target="_blank">me@jvonau.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> On December 9, 2014 at 6:59 AM Gustavo Duarte <<a href="mailto:gus.duarte@gmail.com" target="_blank">gus.duarte@gmail.com</a>><br>
<span>> wrote:<br>
><br>
><br>
> I checked this file, and there are these entries, already, as is showed<br>
> bellow.<br>
><br>
> text/html                                  org.laptop.WebActivity<br>
> application/xhtml+xml             org.laptop.WebActivity<br>
> application/xml                        org.laptop.WebActivity<br>
><br>
> However, it doesn't work, Firefox is opened when I click on a link of<br>
> notification message.<br>
><br>
<br>
</span>Note that x-scheme-handler/http is not present, did you try adding:<br>
x-scheme-handler/http                   org.laptop.WebActivity<br>
to mime-defaults?<br>
<br>
The result *should be* the same as changing the default with xdg-mime but<br>
just for the sugar processes, that is your goal correct?<br>
<span><br>
> May be this behaviour could be, due<br>
><br>
> 1) Sugar is running in Ubuntu.<br>
><br>
</span><span>> 2) Only happens on links inside notification messages, no other way to<br>
> test open a link comes on my mind, at this moment.<br>
><br>
> I'll try on Sugar running on XO/Fedora<br>
<br>
</span>From Sebastian reply,<br>
<br>
xdg-open <a href="http://sugarlabs.org/" target="_blank">http://sugarlabs.org/</a><br>
<br>
Prior to adding the above line the webpage would not load at all(closes<br>
terminal). This appears to work with the altered mime-defaults as above on<br>
XO's here but it doesn't look like the browse activity, more<br>
like epiphany.<br>
<span><font color="#888888"><br>
Jerry<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Gonzalo Odiard<br><br><div>SugarLabs - Software for children learning <br></div></div></div>
</div>