<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
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.<br>
<br>
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...<br>
<br>
<div class="moz-cite-prefix">On 09/02/13 19:32, Angel Sánchez wrote:<br>
</div>
<blockquote cite="mid:51169659.3030109@gmail.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Hi people!<br>
<br>
I was just searching how I could open a webpage from my Activity.<br>
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.<br>
<br>
Anybody can help me?<br>
<br>
As I was searching I just got with this archived thread:<br>
<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a moz-do-not-send="true"
href="http://lists.sugarlabs.org/archive/sugar-devel/2011-August/032733.html">http://lists.sugarlabs.org/archive/sugar-devel/2011-August/032733.html</a><br>
<br>
When I ran the python script it told me this:<br>
<br>
Traceback (most recent call last):<br>
File "www-launch", line 12, in <module><br>
activity = ActivityBundle(path)<br>
NameError: name 'ActivityBundle0 is not defined<br>
<br>
<br>
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.<br>
<br>
Also I have tried sugar-activity using...<br>
<br>
sugar-activity webactivity.WebActivity -b org.laptop.WebActivity
-u <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="http://www.google.com">www.google.com</a><br>
<br>
but is says:<br>
<br>
ImportError: No module named webactivity<br>
<br>
And that command can be seen when I issue 'ps waux' in the
terminal...<br>
<br>
So... I'm in desperate need of help!<br>
<br>
</blockquote>
<br>
</body>
</html>