Don't load properties on D-Bus proxy creation if not needed.
public async Thumbnail create (string service_name,
string object_path,
string host_ip) throws IOError {
- Properties props = Bus.get_proxy_sync (BusType.SESSION,
- service_name,
- object_path);
+ Properties props = Bus.get_proxy_sync
+ (BusType.SESSION,
+ service_name,
+ object_path,
+ DBusProxyFlags.DO_NOT_LOAD_PROPERTIES);
var item_props = yield props.get_all (MediaItemProxy.IFACE);
this.containers = new ArrayList<Container> ();
// Create proxy to MediaContainer iface
- this.actual_container = Bus.get_proxy_sync (BusType.SESSION,
- this.service_name,
- path);
+ this.actual_container = Bus.get_proxy_sync
+ (BusType.SESSION,
+ this.service_name,
+ path,
+ DBusProxyFlags.DO_NOT_LOAD_PROPERTIES);
this.update_container.begin (true);
}
0,
null);
- Properties props_iface = Bus.get_proxy_sync (BusType.SESSION,
- this.service_name,
- id);
+ Properties props_iface = Bus.get_proxy_sync
+ (BusType.SESSION,
+ this.service_name,
+ id,
+ DBusProxyFlags.DO_NOT_LOAD_PROPERTIES);
var props = yield props_iface.get_all (MediaItemProxy.IFACE);
}
var icon_path = (string) value;
- Properties props = Bus.get_proxy_sync (BusType.SESSION,
- service_name,
- icon_path);
+ Properties props = Bus.get_proxy_sync
+ (BusType.SESSION,
+ service_name,
+ icon_path,
+ DBusProxyFlags.DO_NOT_LOAD_PROPERTIES);
var item_props = yield props.get_all (ITEM_IFACE);
public PluginFactory (PluginLoader loader) throws IOError {
this.icon_factory = new IconFactory ();
- this.dbus_obj = Bus.get_proxy_sync (BusType.SESSION,
- DBUS_SERVICE,
- DBUS_OBJECT);
+ this.dbus_obj = Bus.get_proxy_sync
+ (BusType.SESSION,
+ DBUS_SERVICE,
+ DBUS_OBJECT,
+ DBusProxyFlags.DO_NOT_LOAD_PROPERTIES);
this.loader = loader;
this.load_plugins.begin ();
var root_object = "/" + service_name.replace (".", "/");
// Create proxy to MediaObject iface to get the display name through
- Properties props = Bus.get_proxy_sync (BusType.SESSION,
- service_name,
- root_object);
+ Properties props = Bus.get_proxy_sync
+ (BusType.SESSION,
+ service_name,
+ root_object,
+ DBusProxyFlags.DO_NOT_LOAD_PROPERTIES);
HashTable<string,Variant> object_props;
HashTable<string,Variant> container_props;
string object_path,
string host_ip)
throws GLib.Error {
- Properties props = Bus.get_proxy_sync (BusType.SESSION,
- service_name,
- object_path);
+ Properties props = Bus.get_proxy_sync
+ (BusType.SESSION,
+ service_name,
+ object_path,
+ DBusProxyFlags.DO_NOT_LOAD_PROPERTIES);
var item_props = yield props.get_all (MediaItemProxy.IFACE);
PluginLoader loader;
public PluginFactory (PluginLoader loader) throws IOError {
- this.dbus_obj = Bus.get_proxy_sync (BusType.SESSION,
- DBUS_SERVICE,
- DBUS_OBJECT);
+ this.dbus_obj = Bus.get_proxy_sync
+ (BusType.SESSION,
+ DBUS_SERVICE,
+ DBUS_OBJECT,
+ DBusProxyFlags.DO_NOT_LOAD_PROPERTIES);
this.loader = loader;
this.load_plugins.begin ();
private async void load_plugin (string service_name) throws IOError {
// Create proxy to MediaObject iface to get the display name through
- Properties props = Bus.get_proxy_sync (BusType.SESSION,
- service_name,
- MEDIA_PLAYER_PATH);
+ Properties props = Bus.get_proxy_sync
+ (BusType.SESSION,
+ service_name,
+ MEDIA_PLAYER_PATH,
+ DBusProxyFlags.DO_NOT_LOAD_PROPERTIES);
var props_hash = yield props.get_all (MediaPlayerProxy.IFACE);
try {
// Create proxy to MediaPlayer.Player iface
- this.actual_player = Bus.get_proxy_sync (BusType.SESSION,
- service_name,
- MEDIA_PLAYER_PATH);
+ this.actual_player = Bus.get_proxy_sync
+ (BusType.SESSION,
+ service_name,
+ MEDIA_PLAYER_PATH);
// Create proxy to FreeDesktop.Properties iface
- this.properties = Bus.get_proxy_sync (BusType.SESSION,
- service_name,
- MEDIA_PLAYER_PATH);
+ this.properties = Bus.get_proxy_sync
+ (BusType.SESSION,
+ service_name,
+ MEDIA_PLAYER_PATH,
+ DBusProxyFlags.DO_NOT_LOAD_PROPERTIES);
} catch (GLib.Error err) {
critical ("Failed to connect to session bus: %s", err.message);
}
this.create_classes.add (item_factory.upnp_class);
try {
- this.resources = Bus.get_proxy_sync (BusType.SESSION,
- TRACKER_SERVICE,
- RESOURCES_PATH);
+ this.resources = Bus.get_proxy_sync
+ (BusType.SESSION,
+ TRACKER_SERVICE,
+ RESOURCES_PATH,
+ DBusProxyFlags.DO_NOT_LOAD_PROPERTIES);
} catch (IOError io_error) {
critical (_("Failed to create D-Bus proxies: %s"),
io_error.message);
}
private void create_proxies () throws IOError {
- this.resources = Bus.get_proxy_sync (BusType.SESSION,
- TRACKER_SERVICE,
- RESOURCES_PATH);
+ this.resources = Bus.get_proxy_sync
+ (BusType.SESSION,
+ TRACKER_SERVICE,
+ RESOURCES_PATH,
+ DBusProxyFlags.DO_NOT_LOAD_PROPERTIES);
}
private bool is_child_id_unique (string child_id) {
public PluginFactory (PluginLoader loader) throws IOError {
this.stats = Bus.get_proxy_sync (BusType.SESSION,
- TRACKER_SERVICE,
- STATISTICS_OBJECT);
+ TRACKER_SERVICE,
+ STATISTICS_OBJECT,
+ DBusProxyFlags.DO_NOT_LOAD_PROPERTIES);
this.loader = loader;
this.stats.get_statistics ();
MODIFIED_VARIABLE);
try {
- this.resources = Bus.get_proxy_sync (BusType.SESSION,
- TRACKER_SERVICE,
- RESOURCES_PATH);
+ this.resources = Bus.get_proxy_sync
+ (BusType.SESSION,
+ TRACKER_SERVICE,
+ RESOURCES_PATH,
+ DBusProxyFlags.DO_NOT_LOAD_PROPERTIES);
this.get_children_count.begin ();
} catch (IOError error) {
public DBusService (Main main) throws IOError {
this.main = main;
- DBusObject bus = Bus.get_proxy_sync (BusType.SESSION,
- DBUS_SERVICE,
- DBUS_OBJECT);
+ DBusObject bus = Bus.get_proxy_sync
+ (BusType.SESSION,
+ DBUS_SERVICE,
+ DBUS_OBJECT,
+ DBusProxyFlags.DO_NOT_LOAD_PROPERTIES);
// try to register service in session bus
if (bus.request_name (DBusInterface.SERVICE_NAME, 0) !=
if (enable) {
// Creating the proxy starts the service
- DBusObject dbus = Bus.get_proxy_sync (BusType.SESSION,
- DBUS_SERVICE,
- DBUS_OBJECT);
+ DBusObject dbus = Bus.get_proxy_sync
+ (BusType.SESSION,
+ DBUS_SERVICE,
+ DBUS_OBJECT,
+ DBusProxyFlags.DO_NOT_LOAD_PROPERTIES);
dbus.start_service_by_name (DBusInterface.SERVICE_NAME, 0);
// Then symlink the desktop file to user's autostart dir
DBusInterface rygel_proxy = Bus.get_proxy_sync
(BusType.SESSION,
DBusInterface.SERVICE_NAME,
- DBusInterface.OBJECT_PATH);
+ DBusInterface.OBJECT_PATH,
+ DBusProxyFlags.DO_NOT_LOAD_PROPERTIES);
rygel_proxy.shutdown ();
}