diff options
-rw-r--r-- | src/volume-control.vala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/volume-control.vala b/src/volume-control.vala index 889c2d6..4c543f6 100644 --- a/src/volume-control.vala +++ b/src/volume-control.vala @@ -372,7 +372,7 @@ public class VolumeControl : Object } /* AccountsService operations */ - private void accountsservice_props_changed_cb (DBusProxy proxy, Variant changed_properties, string[] invalidated_properties) + private void accountsservice_props_changed_cb (DBusProxy proxy, Variant changed_properties, string[]? invalidated_properties) { Variant volume_variant = changed_properties.lookup_value ("Volume", new VariantType ("d")); if (volume_variant != null) { @@ -441,8 +441,11 @@ public class VolumeControl : Object private async void setup_accountsservice () { if (Environment.get_variable ("XDG_SESSION_CLASS") == "greeter") { + var bus_name = Environment.get_variable ("UNITY_GREETER_DBUS_NAME"); + if (bus_name == null) + bus_name = "com.canonical.UnityGreeter"; try { - _greeter_proxy = yield Bus.get_proxy (BusType.SESSION, "com.canonical.UnityGreeter", "/list"); + _greeter_proxy = yield Bus.get_proxy (BusType.SESSION, bus_name, "/list"); } catch (GLib.Error e) { warning ("unable to get greeter proxy: %s", e.message); return; |