tags:

views:

164

answers:

5

Javascript is widely used to create apps in the web. How about desktop, etc? Gnome Shell is made of it. I'm just curious if there's a way or something which allows devs to access Gnome/Clutter graphics libraries?

A: 

Yes using Rhino although it looks like a convolated path...

jldupont
+1  A: 

There are various ways to do this. Besides Rhino, V8/node.js is one of them.

Andrew Kolesnikov
+1 for mentioning Node.js, it's a great and fun way to build servers
Robert Gould
But it's not really Gnome related. Yet you still get my +1 for mentioning Rhino although it's not as fun.
Robert Gould
A: 

Check this recent post by Alan Knowles.

mrclay
A: 

I dont know much about the Gnome/Clutter graphics access, But several SSJS (Server-side_JavaScript) available that can work on Linux environments.

Ramesh Vel
+2  A: 

The three best options that I know of are Rhino (using Swing, or other Java graphics frameworks), Seed, and Gjs.

Seed and Gjs are both Gnome projects that bind the GTK+ and Gnome libraries to JavaScript. Seed uses the JavaScriptCore runtime from WebKit and Gjs uses Mozilla's Spidermonkey engine. Gnome Shell is using Gjs.

Another option that, as far as I know, is still pretty immature is Gom. Instead of just a JavaScript binding for GTK+, it has an HTML-like DOM interface.

Matthew Crumley
I also want to point out that both Seed and GJS support Clutter through GObjectIntrospection.
Brian McKenna