def _complete_desktop_startup(): launcher.setup() GLib.idle_add(setup_frame_cb) GLib.idle_add(setup_keyhandler_cb) GLib.idle_add(setup_gesturehandler_cb) GLib.idle_add(setup_journal_cb) GLib.idle_add(setup_notification_service_cb) GLib.idle_add(setup_file_transfer_cb) GLib.timeout_add_seconds(600, updater.startup_periodic_update) apisocket.start() testrunner.check_environment()
sugar_theme = 'sugar-100' # This code can be removed when we grow an xsettings daemon (the GTK+ # init routines will then automatically figure out the font settings) settings = Gtk.Settings.get_default() settings.set_property('gtk-theme-name', sugar_theme) settings.set_property('gtk-icon-theme-name', 'sugar') settings.set_property('gtk-font-name', '%s %f' % (style.FONT_FACE, style.FONT_SIZE)) DS_DBUS_SERVICE = 'org.laptop.sugar.DataStore' DS_DBUS_INTERFACE = 'org.laptop.sugar.DataStore' DS_DBUS_PATH = '/org/laptop/sugar/DataStore' from jarabe import apisocket apisocket.start() _datastore = None def _get_datastore(): global _datastore if _datastore is None: bus = dbus.SessionBus() remote_object = bus.get_object(DS_DBUS_SERVICE, DS_DBUS_PATH) _datastore = dbus.Interface(remote_object, DS_DBUS_INTERFACE) #_datastore.connect_to_signal('Created', _datastore_created_cb) #_datastore.connect_to_signal('Updated', _datastore_updated_cb) #_datastore.connect_to_signal('Deleted', _datastore_deleted_cb) return _datastore _datastore = _get_datastore()