[Sugar-devel] native HTML activity

Gonzalo Odiard gonzalo at laptop.org
Fri Nov 8 07:51:12 EST 2013


I think is a interesting development, but also I am worried about include
more C code in the toolkit.
The true is we don't have enough expertise in the community.
By example we have a error closing sugar [1]
I am pretty sure is related to one part of code in C, but was not able to
solve it,
and nobody else solved it neither.
And webactivities are just starting, then more changes will be needed.
Maybe you can compromise to maintain it as a compatible alternative,
available to be used when needed.

Gonzalo

[1] http://dev.laptop.org/ticket/12593


On Thu, Nov 7, 2013 at 6:36 PM, NoiseEHC <noiseehc at gmail.com> wrote:

> Hi!
>
> Just to prove that it can be done, I have hacked a little bit more on the
> native HTML activity which can be found here:
> https://github.com/NoiseEHC/sugar-webkit-native
>
> I tried to create virtual pages by using WebKit1's or Soap's url rewriting
> callbacks but it turns out that no matter what you do, the thing wants to
> use the data from the TCP stream... So I turned to starting a (Soap) HTTP
> server inside the native activity (on a random port) and it works. Now the
> activity runs from localhost (/activity and /web subfolders) and there is a
> virtual folder called /journal. It has only one hacked file, the
> /journal/journal.html, which has links to all the things in the journal. It
> queries the journal service via DBUS. I have to tell you that working with
> GVariant from C is a real PITA, so I did not implement the load/store of
> the real journal files, but it is clearly possible... (Beware, it leaks
> every possible resources, it is just a proof of concept.)
>
> Now, I do not know what is the problem with WebKit1, it seems to work for
> me, and at least it does not crash on an XO-1.75 as WebKit2 does. On the
> other hand I cannot try it on my XO-1.75 as it is not possible anymore to
> install webkitgtk-devel on the machine as I told you last time...
>
> This whole project has the following benefits:
> - It is much-much faster than the python one. It does matter on an XO.
> - It does not depend on the WebKitGTK python bindings to be maintained, it
> can use all WebKitGTK's features.
> - It does not have a dependency on Node.js.
> - It does not use WebSocket, which would require using WebKit2...
>
> So now it is your decision whether you use it or not.
>
> Thanks,
> Andrew
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20131108/1224d2ed/attachment.html>


More information about the Sugar-devel mailing list