Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've found this, but I'm trying not to borrow code for my application.

The reasoning is that if you're writing a local HTML5 App, you may want to call some DBus api from javascript(like ubuntuone for example).

share|improve this question
Why do you need a REST API? Why not use the standard DBus API? – JanC Jun 17 '12 at 12:28
Yeah, I'm not sure why a desktop application would need this, the python-dbus API works well enough – mhall119 Jun 17 '12 at 15:07
HTML5 local application so you could talk to DBus from JS – RobotHumans Jun 17 '12 at 15:35
Does this have to run in a browser, or in a simple Gtk/Webkit app? – JanC Jun 17 '12 at 19:48
Ideally it would run in a browser, but Gtk/Webkit would be sufficient. – RobotHumans Jun 17 '12 at 19:48
up vote 5 down vote accepted

My recommendation would be to use the HTML5 Quickly template. It is not yet released, and I will ask mhall to post where the code is, but the template combines together the power of HTML5 and Python.

This means you can talk to DBUS via Python, and trigger those methods using HTML5, which it seems you want to do.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.