Re: [Sugar-devel] Widget to show a notification message with a link
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, Firefox is opened when I click on a link of notification message. 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 thanks On Mon, Dec 8, 2014 at 1:58 PM, Gonzalo Odiard wrote: > We have that file in sugar module in the data directory. > > Gonzalo > > On Mon, Dec 8, 2014 at 12:48 PM, Gustavo Duarte > 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, Walter Bender >> wrote: >> > Did you try in /usr/share/sugar/data/mime-defaults by any chance? >> > >> > On Mon, Dec 8, 2014 at 7:27 AM, Gustavo Duarte >> > 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 point of Sugar session starting procedure ? >> >> >> >> Inside sugar-session script, it would be a right place ? >> >> >> >> Because this mime types settings is valid only on Sugar desktop, when >> >> the PC switch to Gnome, the mime types should be changed to Firefox. >> >> >> >> Thanks in advance. >> >> >> >> Gustavo. >> >> >> >> >> >> >> >> On Sun, Dec 7, 2014 at 12:01 PM, Gustavo Duarte >> >> wrote: >> >>> Good point, i'll try it and let you know. >> >>> >> >>> El 07/12/2014 02:38, "Jerry Vonau" 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 might be in >> /usr/share/sugar/data/mime.defaults. >> >> Jerry >> >> >> > On December 6, 2014 at 8:57 PM Gustavo Duarte >> > >> > wrote: >> > >> > >> > 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 BrowserActivity. >> > >> > Offcourse a bash script to launch BrowserActivit is needed. >> > Something >> > like: >> > >> > #!/bin/sh >> > while [ -n "$2" ] ; do >> > case "$1" in >> > >> > -u | --uri) uri="$2" ;; >> > >> > *) echo unknown argument $1 $2 ;; >> > >> > esac >> > shift;shift >> > done >> > >> > sugar-launch org.laptop.WebActivity --uri "$uri" >> > >> > Thanks a lot for all your tips, were very helpfully. >> > >> > Gustavo. >> > >> > On Sat, Dec 6, 2014 at 3:59 PM, Jerry Vonau wrote: >> > > Hi Gustavo, >> > > >> > >> On December 6, 2014 at 10:42 AM Gustavo Duarte >> > >> >> > >> 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 actions send a request message back to the notification >> > >> client >> > >> when invoked. This functionality may not be implemented by the >> > >> notification server, conforming clients should check if it is >> > >> available before using it (see the GetCapabilities message in >> > >> Protocol). An implementation is free to ignore any requested by >> > >> the >> > >> client. As an example one possible rendering of actions would be >> > >> as >> > >> buttons in the notification popup. >> > >> >> > >> Actions are sent over as a list of pairs. Each even element in >> > >> the >> > >> list (starting at index 0) represents the identifier for the >> > >> action. >> > >> Each odd element in the list is the localized string that will >> > >> be >> > >> displayed to the user." >> > >> >> > >> >> > >> However hyperlinks is supported, if I add > > >> href="http://sugarlabs.org";> SugarLabs , works. Not exactly as I >> > >> want :( >> > >> >> > >> When I do a click on the link, Firefox is opened. >> > >> >> > >> I tried change the system default browser setting
[Sugar-devel] [ASLO] Release Physics-24
Activity Homepage: http://activities.sugarlabs.org/addon/4193 Sugar Platform: 0.96 - 0.102 Download Now: http://activities.sugarlabs.org/downloads/file/29038/physics-24.xo Release notes: 24 * Added controls for simulation speed (Sai Vineet) * Added the ability to drag motors and pins (Sai Vineet) Sugar Labs Activities http://activities.sugarlabs.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] [ASLO] Release CuidarMe-2
Activity Homepage: http://activities.sugarlabs.org/addon/4676 Sugar Platform: 0.82 - 0.102 Download Now: http://activities.sugarlabs.org/downloads/file/29036/cuidarme-2.xo Release notes: En esta versión se incluyen las situaciones de riesgo ilustradas, en cada tablero de juego el personaje encontrará el poder destruir a los fantasmas con diferentes opciones frutas, estrellas, dulces, entre otros. No te lo pierdas. Sugar Labs Activities http://activities.sugarlabs.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Starting a new web activity : problem when closing activity, and with icon design
Hi Laurent, I've worked on your icon issue and solved it (sent you a pull request [1]). Shortly, some needed js library was missing: domReady.js, text.js and webL10n.js. It's why it doesn't work. I've also replaced the sugar-web library version by the one working both on Sugar and Sugarizer. Tested on Sugarizer, it works now. Best regards from France. Lionel. [1] https://github.com/loloof64/olpc-simple-tictactoe-activity/pull/1 2014-12-03 15:40 GMT+01:00 : > > Date: Wed, 03 Dec 2014 10:50:05 + > From: Iain Brown Douglas > To: laurent bernabe > Cc: Sugar Devel , Lionel Lask? > > Subject: Re: [Sugar-devel] Starting a new web activity : problem when > closing activity, and with icon design > Message-ID: <1417603805.3476.2.camel@vey-waldorf> > Content-Type: text/plain; charset="UTF-8" > > You could eliminate that by substituting a known working .svg borrowed > from another activity. > > Iain > On Wed, 2014-12-03 at 11:16 +0100, laurent bernabe wrote: > > My intuition is that I've misued stroke and fill entities, though I > > processed the icon with the sugariconify script. > > Indeed, in Sugarizer, my activity icon is different than the others > > (screenshot provided). > > > > > > Regards > > > > 2014-12-03 1:00 GMT+01:00 laurent bernabe : > > Hi, > > > > > > I've replaced the content of > > /activities/simple-tictactoe-activity/lib/sugar-web > folder with the /activities/ActivityTemplate/lib/sugar-web > folder. > > But I still can't close my application with the stop button. > > > > > > Even after having restarted the chrome navigator (keeping the > > flag --allow-access-from-files). > > > > > > Regards > > > > 2014-12-02 19:04 GMT+01:00 Lionel Lask? > > : > > It's a nice first start. > > Now replace your lib/sugar-web directory with the one > > from lib/ActivityTemplate directory. > > It should work. > > > > > > Lionel > ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] Fwd: Starting a new web activity : problem when closing activity, and with icon design
-- Forwarded message -- From: laurent bernabe Date: 2014-12-09 22:13 GMT+01:00 Subject: Re: [Sugar-devel] Starting a new web activity : problem when closing activity, and with icon design To: Lionel Laské Hi Lionel, Thank you very much, I've merged your pull request. Do I need to pull the changes from my repository ? (I am asking, as it is my very first pull merge from a repository) As for the missing libraries, do you advice me to do a pull on sugar-build, so that one new activity won't miss these ? Regards 2014-12-09 22:02 GMT+01:00 Lionel Laské : > > Hi Laurent, > > I've worked on your icon issue and solved it (sent you a pull request [1]). > Shortly, some needed js library was missing: domReady.js, text.js and > webL10n.js. > It's why it doesn't work. > I've also replaced the sugar-web library version by the one working both > on Sugar and Sugarizer. > Tested on Sugarizer, it works now. > > Best regards from France. > > Lionel. > > [1] https://github.com/loloof64/olpc-simple-tictactoe-activity/pull/1 > > 2014-12-03 15:40 GMT+01:00 : >> >> Date: Wed, 03 Dec 2014 10:50:05 + >> From: Iain Brown Douglas >> To: laurent bernabe >> Cc: Sugar Devel , Lionel Lask? >> >> Subject: Re: [Sugar-devel] Starting a new web activity : problem when >> closing activity, and with icon design >> Message-ID: <1417603805.3476.2.camel@vey-waldorf> >> Content-Type: text/plain; charset="UTF-8" >> >> You could eliminate that by substituting a known working .svg borrowed >> from another activity. >> >> Iain >> On Wed, 2014-12-03 at 11:16 +0100, laurent bernabe wrote: >> > My intuition is that I've misued stroke and fill entities, though I >> > processed the icon with the sugariconify script. >> > Indeed, in Sugarizer, my activity icon is different than the others >> > (screenshot provided). >> > >> > >> > Regards >> > >> > 2014-12-03 1:00 GMT+01:00 laurent bernabe : >> > Hi, >> > >> > >> > I've replaced the content of >> > >> /activities/simple-tictactoe-activity/lib/sugar-web folder >> with the /activities/ActivityTemplate/lib/sugar-web folder. >> > But I still can't close my application with the stop button. >> > >> > >> > Even after having restarted the chrome navigator (keeping the >> > flag --allow-access-from-files). >> > >> > >> > Regards >> > >> > 2014-12-02 19:04 GMT+01:00 Lionel Lask? >> > : >> > It's a nice first start. >> > Now replace your lib/sugar-web directory with the one >> > from lib/ActivityTemplate directory. >> > It should work. >> > >> > >> > Lionel >> > > ___ > Sugar-devel mailing list > Sugar-devel@lists.sugarlabs.org > http://lists.sugarlabs.org/listinfo/sugar-devel > > -- Laurent Bernabé laurent.bern...@gmail.com -- Laurent Bernabé laurent.bern...@gmail.com ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Widget to show a notification message with a link
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 light into how to achieve what you want. Glad to see work on Sugar outside Fedora. Regards, -- Sebastian Silva "icarito" #sugar #somosazucar (freenode IRC) Somos Azúcar - Fuente Libre - Sugar Labs "Las maestras y los maestros democráticos intervenimos en el mundo a través del cultivo de la curiosidad" - P.Freire ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] Problem in Developing Environment
Respected Sugar-Team, I am having some problems in setting up Sugar developing environment. I have strictly followed the instructions given on your web, but whenever I type './osbuild' command it says 'another instance of osbuild is running' and then nothing happens. It would be very kind of you, if someone help me out or lookout for the problem. An early reply would be very helpful. Thank You, With Regards, Rajeev Nagarwal ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel