IMO sugarizer and standalone should be both supported modes. Being able to just load a single activity in a browser is great.<div><br></div><div>I think what I suggested in a previous thread was to use a well know local storage key to detect that we are inside sugarizer. Open to other approaches if anyone has better ideas...</div>
<div><br></div><div>I'm not sure about 0.0.0.0 for webkit1, ideally a local web server would normally use standalone mode... But I guess it's fine as a short time hack. Hopefully we will get webkit2 on the XO at some point.<br>
<br>On Tuesday, 25 February 2014, Lionel Laské <<a href="mailto:lionel@olpc-france.org">lionel@olpc-france.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div>
> What means "Standalone" ?<br>
<br>
</div>Standalone means<br>
<a href="http://developer.sugarlabs.org/web-architecture.md.html#web%20activities%20standalone" target="_blank">http://developer.sugarlabs.org/web-architecture.md.html#web%20activities%20standalone</a><br>
<div><br></div></blockquote><div>Ok. Thanks for the explanation.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div>
> FYI the method return true because env.getURLScheme() return "http", so the test condition is false.<br>
> Does it mean that the test condition should not be this ?<br>
<br>
</div>It means you are using WebkitGTK1. We encourage web development in<br>
WebkitGTK2. The WK1 is a fallback.<br>
<div><br></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>><br>
> Any suggestion about this method is welcome.<br><br></div>I suggest you do web development on sugar-build. I guess some day XOs<br>will come with latest Fedora. We can't rely in old Webkit because it<br>limits development.</blockquote>
<div> </div><div>Hmm, I'm using the latest build of Sugar 0.100 here [1].</div><div>Does it means that there is no way to test WK2 on a real XO ?</div><div><br></div><div>The reason I'm working to merge Sugarizer with Sugar Web is precisely to allow a developer to write web activities for the XO without using sugar-build. Today, because of the WK1 issue and this Standalone test it means that the generated activity will never work on the XO-4 with Sugar 0.100 :-(</div>
<div><br></div><div>Except if you think it's a bad idea, my suggestion is to completely remove the "isStandalone" test.</div><div>In fact, with the new "isSugarizer" test that I'm working on, I think we could consider that Sugarizer supersede the Standalone mode, so the test is not need.</div>
<div><br></div><div>Does it make sense for you ?</div><div><br></div><div> Lionel. </div><div> </div><div><br></div><div>[1] <a href="http://wiki.sugarlabs.org/go/0.100/Testing" target="_blank">http://wiki.sugarlabs.org/go/0.100/Testing</a> </div>
</div><br></div></div>
</blockquote></div><br><br>-- <br>Daniel Narvaez<br><br>