[Sugar-devel] opening a url with WebActivity

Angel Sánchez salemixu at gmail.com
Sat Feb 9 14:14:14 EST 2013


BTW, I've discovered that my XO has sugar-launch with the -u 
parameter... so it seems that sometimes it open the webpage with the 
Browser, but sometimes my game gets stuck and the Activity is not opened 
and I have to reboot the machine.

Can be possible that the Browser activity is launched but in the 
background, and my activity is waiting to return from the launch? Or 
anything alike...

On 09/02/13 19:32, Angel Sánchez wrote:
> Hi people!
>
> I was just searching how I could open a webpage from my Activity.
> It's a game coded in c++ and I was trying to call shells commands to 
> open it, but I haven't had much luck.
>
> Anybody can help me?
>
> As I was searching I just got with this archived thread:
>
> http://lists.sugarlabs.org/archive/sugar-devel/2011-August/032733.html
>
> When I ran the python script it told me this:
>
> Traceback (most recent call last):
>   File "www-launch", line 12, in <module>
>     activity = ActivityBundle(path)
> NameError: name 'ActivityBundle0 is not defined
>
>
> I have tried using sugar-launch but it doesn't accept any parameters, 
> and as I can't modify the system, the patch used elsewhere is not a 
> solution.
>
> Also I have tried sugar-activity using...
>
> sugar-activity webactivity.WebActivity -b org.laptop.WebActivity -u 
> www.google.com
>
> but is says:
>
> ImportError: No module named webactivity
>
> And that command can be seen when I issue 'ps waux' in the terminal...
>
> So... I'm in desperate need of help!
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130209/8739d3dc/attachment.html>


More information about the Sugar-devel mailing list