Re: [Sugar-devel] Widget to show a notification message with a link

2014-12-11 Thread Gustavo Duarte
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

Re: [Sugar-devel] Widget to show a notification message with a link

2014-12-11 Thread Gustavo Duarte
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

Re: [Sugar-devel] Widget to show a notification message with a link

2014-12-11 Thread Gonzalo Odiard
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.dua...@gmail.com wrote: Just other info: I tried, add line x-scheme-handler/http org.laptop.WebActivity on

Re: [Sugar-devel] Widget to show a notification message with a link

2014-12-10 Thread Jerry Vonau
On December 9, 2014 at 6:59 AM Gustavo Duarte gus.dua...@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

Re: [Sugar-devel] Widget to show a notification message with a link

2014-12-09 Thread Gustavo Duarte
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/xmlorg.laptop.WebActivity However, it doesn't work,

Re: [Sugar-devel] Widget to show a notification message with a link

2014-12-09 Thread Sebastian Silva
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 Perhaps the following command is a way to test the default URL handler. xdg-open http://sugarlabs.org/ Maybe it will shed some

Re: [Sugar-devel] Widget to show a notification message with a link

2014-12-08 Thread Gustavo Duarte
Unfortunately, this settings on activity.info doesn't work. Now i'm wonder, where should be the best place to configure these mime entries, in which point of Sugar session starting procedure ? Inside sugar-session script, it would be a right place ? Because this mime types settings is valid

Re: [Sugar-devel] Widget to show a notification message with a link

2014-12-08 Thread Walter Bender
Did you try in /usr/share/sugar/data/mime-defaults by any chance? On Mon, Dec 8, 2014 at 7:27 AM, Gustavo Duarte gus.dua...@gmail.com wrote: Unfortunately, this settings on activity.info doesn't work. Now i'm wonder, where should be the best place to configure these mime entries, in which

Re: [Sugar-devel] Widget to show a notification message with a link

2014-12-08 Thread Gustavo Duarte
Ahh no, I didn't know this file, sound a good option, i'll try and let you know the results. Thanks Gustavo. On Mon, Dec 8, 2014 at 11:17 AM, Walter Bender walter.ben...@gmail.com wrote: Did you try in /usr/share/sugar/data/mime-defaults by any chance? On Mon, Dec 8, 2014 at 7:27 AM, Gustavo

Re: [Sugar-devel] Widget to show a notification message with a link

2014-12-08 Thread Gonzalo Odiard
We have that file in sugar module in the data directory. Gonzalo On Mon, Dec 8, 2014 at 12:48 PM, Gustavo Duarte gus.dua...@gmail.com wrote: Ahh no, I didn't know this file, sound a good option, i'll try and let you know the results. Thanks Gustavo. On Mon, Dec 8, 2014 at 11:17 AM,

Re: [Sugar-devel] Widget to show a notification message with a link

2014-12-07 Thread Gustavo Duarte
Good point, i'll try it and let you know. El 07/12/2014 02:38, Jerry Vonau m...@jvonau.ca escribió: Just a thought, wonder if adding x-scheme-handler/http to mime_types= in browse's activity.info file would allow sugar to override what the system is providing? Another place for that definition

Re: [Sugar-devel] Widget to show a notification message with a link

2014-12-06 Thread Gustavo Duarte
Add an actions, isn't an option, because the notification-daemon (Ubuntu 12.04 precise) does't support actions. From freedesktop specs https://developer.gnome.org/notification-spec/ Actions The actions send a request message back to the notification client when invoked. This functionality may

Re: [Sugar-devel] Widget to show a notification message with a link

2014-12-06 Thread Jerry Vonau
Hi Gustavo, On December 6, 2014 at 10:42 AM Gustavo Duarte gus.dua...@gmail.com wrote: Add an actions, isn't an option, because the notification-daemon (Ubuntu 12.04 precise) does't support actions. From freedesktop specs https://developer.gnome.org/notification-spec/ Actions The

Re: [Sugar-devel] Widget to show a notification message with a link

2014-12-06 Thread Gustavo Duarte
Finally I found the setting needed to open links with Browser Activity by default. xdg-mime default sugar-browser.desktop x-scheme-handler/http and xdg-mime default sugar-browser.desktop x-scheme-handler/https Adding this settings, links on notifications messages should be opened by

Re: [Sugar-devel] Widget to show a notification message with a link

2014-12-06 Thread Jerry Vonau
Just a thought, wonder if adding x-scheme-handler/http to mime_types= in browse's activity.info file would allow sugar to override what the system is providing? Another place for that definition might be in /usr/share/sugar/data/mime.defaults. Jerry On December 6, 2014 at 8:57 PM Gustavo

[Sugar-devel] Widget to show a notification message with a link

2014-12-05 Thread Gustavo Duarte
Hi Guys, I need build an app, which shows a message to kids with some text and one link which could be opened by Browser activity, like a notification. I know that already exist a way, to show notifications which will be placed on the top bar, by dbus, org.freedesktop.Notifications, however it

Re: [Sugar-devel] Widget to show a notification message with a link

2014-12-05 Thread Gonzalo Odiard
I think the firs option is the best. That addition was discussed a few times but never implemented in Sugar. Please share your code then can be added in the next version of Sugar. Gonzalo On Fri, Dec 5, 2014 at 11:54 AM, Gustavo Duarte gus.dua...@gmail.com wrote: Hi Guys, I need build an

Re: [Sugar-devel] Widget to show a notification message with a link

2014-12-05 Thread Gustavo Duarte
Hi Gonzalo, Do you remember, if is there a thread where it addition was discussed ? Or do you suggest me a start point to achieve that ? Thanks Gustavo. On Fri, Dec 5, 2014 at 1:27 PM, Gonzalo Odiard godi...@sugarlabs.org wrote: I think the firs option is the best. That addition was discussed

Re: [Sugar-devel] Widget to show a notification message with a link

2014-12-05 Thread Gonzalo Odiard
On Fri, Dec 5, 2014 at 1:35 PM, Gustavo Duarte gus.dua...@gmail.com wrote: Hi Gonzalo, Do you remember, if is there a thread where it addition was discussed ? I didn't found it. Or do you suggest me a start point to achieve that ? You can look at: jarabe/model/notifications.py

Re: [Sugar-devel] Widget to show a notification message with a link

2014-12-05 Thread Sam P.
Hi, If my memory is right, the freedesktop notification spec includes actions. You can have multiple of these and they are displayed like buttons [1]. When they are clicked you get a callback event. I would prefer to implement the standard ranter than something proprietary. That is just my

Re: [Sugar-devel] Widget to show a notification message with a link

2014-12-05 Thread Gonzalo Odiard
+1 On Fri, Dec 5, 2014 at 4:57 PM, Sam P. sam.parkins...@gmail.com wrote: Hi, If my memory is right, the freedesktop notification spec includes actions. You can have multiple of these and they are displayed like buttons [1]. When they are clicked you get a callback event. I would prefer

Re: [Sugar-devel] Widget to show a notification message with a link

2014-12-05 Thread Gustavo Duarte
Greats !! Thanks for these tips. El 05/12/2014 17:59, Gonzalo Odiard godi...@sugarlabs.org escribió: +1 On Fri, Dec 5, 2014 at 4:57 PM, Sam P. sam.parkins...@gmail.com wrote: Hi, If my memory is right, the freedesktop notification spec includes actions. You can have multiple of these and