rox.session | index |
Contact ROX-Session via the DBus or XMLRPC interface. Using get_session()
will return a proxy object on which you can make remote calls to control
the session. Similarly get_settings() will return an object to control
session settings, e.g.
try:
settings = session.get_settings()
type, value = settings.GetSetting('Gtk/KeyThemeName')
except:
# No ROX-Session available, do something else
In addition the Setting class is provided which derives from rox.options.Option
but has two important differences: it is not saved to the options file and
it is synchronized with a value of the same name in the ROX-Session settings.