clarity of concept
clarity of concept
Posted Nov 14, 2014 17:53 UTC (Fri) by stef0x77 (guest, #88431)In reply to: clarity of concept by ceplm
Parent article: Kdbus meets linux-kernel
Cockpit http://cockpit-project.org/ is hands down the easiest way to use DBus. For example, log into Cockpit, and type stuff like this in your javascript console to get a taste:
proxy = cockpit.dbus('org.freedesktop.hostname1').proxy()
proxy.Hostname
proxy.SetStaticHostname('mypinkpony.local', true)
You need Cockpit 0.31 or later. See here for a full example:
http://stef.thewalter.net/using-dbus-from-javascript-in-c...
... and here for full documentation:
http://files.cockpit-project.org/guide/latest/api-cockpit...
