diff options
Diffstat (limited to 'src/accounts-service-access.vala')
-rw-r--r-- | src/accounts-service-access.vala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/accounts-service-access.vala b/src/accounts-service-access.vala index 9ce7f66..57c625e 100644 --- a/src/accounts-service-access.vala +++ b/src/accounts-service-access.vala @@ -142,7 +142,11 @@ public class AccountsServiceAccess : Object string user_path; if (user_path_variant.check_format_string ("(o)", true)) { user_path_variant.get ("(o)", out user_path); +#if HAS_UT_ACCTSERVICE_SOUND_SETTINGS + _user_proxy = yield DBusProxy.create_for_bus (BusType.SYSTEM, DBusProxyFlags.GET_INVALIDATED_PROPERTIES, null, "org.freedesktop.Accounts", user_path, "com.ubuntu.AccountsService.Sound"); +#else _user_proxy = yield DBusProxy.create_for_bus (BusType.SYSTEM, DBusProxyFlags.GET_INVALIDATED_PROPERTIES, null, "org.freedesktop.Accounts", user_path, "org.ayatana.AccountsService.Sound"); +#endif } else { warning ("Unable to find user name after calling FindUserByName. Expected type: %s and obtained %s", "(o)", user_path_variant.get_type_string () ); return; |