[Sugar-devel] Widget to show a notification message with a link
Gonzalo Odiard
godiard at sugarlabs.org
Thu Dec 11 09:03:59 EST 2014
Otra alternativa es que manejes el evento activate-link
https://developer.gnome.org/gtk3/stable/GtkLinkButton.html
Gonzalo
On Thu, Dec 11, 2014 at 10:07 AM, Gustavo Duarte <gus.duarte at gmail.com>
wrote:
> Just other info:
>
> I tried, add line "x-scheme-handler/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.
>
>
> Seems x-scheme-handler mime types aren't well managed by Sugar.
>
> Regards.
>
>
>
>
> On Thu, Dec 11, 2014 at 10:56 AM, Gustavo Duarte <gus.duarte at gmail.com>
> wrote:
>
>> Hi Jerry,
>>
>> My mistake, i missed write down the line added on
>> /usr/share/sugar/data/mime.default file.
>>
>> I added exactly this line:
>>
>> x-scheme-handler/http org.laptop.WebActivity
>>
>> However after that, links were still opened with Firefox, I agree with
>> you, tat should be work, but i don't know why.
>>
>>
>> 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.
>>
>> And also added a script on /etc/lightdm/lightdm.conf to setting the right
>> ones for Gnome, when it is starting.
>>
>> Thanks.
>>
>> Gustavo.
>>
>>
>>
>>
>> On Wed, Dec 10, 2014 at 8:10 PM, Jerry Vonau <me at jvonau.ca> wrote:
>>
>>>
>>> > On December 9, 2014 at 6:59 AM Gustavo Duarte <gus.duarte at gmail.com>
>>> > wrote:
>>> >
>>> >
>>> > I checked this file, and there are these entries, already, as is showed
>>> > bellow.
>>> >
>>> > text/html org.laptop.WebActivity
>>> > application/xhtml+xml org.laptop.WebActivity
>>> > application/xml org.laptop.WebActivity
>>> >
>>> > However, it doesn't work, Firefox is opened when I click on a link of
>>> > notification message.
>>> >
>>>
>>> Note that x-scheme-handler/http is not present, did you try adding:
>>> x-scheme-handler/http org.laptop.WebActivity
>>> to mime-defaults?
>>>
>>> The result *should be* the same as changing the default with xdg-mime but
>>> just for the sugar processes, that is your goal correct?
>>>
>>> > May be this behaviour could be, due
>>> >
>>> > 1) Sugar is running in Ubuntu.
>>> >
>>> > 2) Only happens on links inside notification messages, no other way to
>>> > test open a link comes on my mind, at this moment.
>>> >
>>> > I'll try on Sugar running on XO/Fedora
>>>
>>> From Sebastian reply,
>>>
>>> xdg-open http://sugarlabs.org/
>>>
>>> Prior to adding the above line the webpage would not load at all(closes
>>> terminal). This appears to work with the altered mime-defaults as above
>>> on
>>> XO's here but it doesn't look like the browse activity, more
>>> like epiphany.
>>>
>>> Jerry
>>>
>>
>>
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
--
Gonzalo Odiard
SugarLabs - Software for children learning
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20141211/bf0eff5a/attachment.html>
More information about the Sugar-devel
mailing list