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 <m...@jvonau.ca> wrote: > > > 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 > > 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@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel