diff options
author | Michael Terry <michael.terry@canonical.com> | 2014-04-01 17:08:28 -0400 |
---|---|---|
committer | Michael Terry <michael.terry@canonical.com> | 2014-04-01 17:08:28 -0400 |
commit | 47ca0f8c9af7c41e884ff696c0ee05addd9f0ae8 (patch) | |
tree | b2e281944d19f0cb82a85bab0450d3708adb4592 /src/volume-control.vala | |
parent | 0bc794899a7d4500d76b2a9ec3c6f311d6c25312 (diff) | |
download | ayatana-indicator-sound-47ca0f8c9af7c41e884ff696c0ee05addd9f0ae8.tar.gz ayatana-indicator-sound-47ca0f8c9af7c41e884ff696c0ee05addd9f0ae8.tar.bz2 ayatana-indicator-sound-47ca0f8c9af7c41e884ff696c0ee05addd9f0ae8.zip |
Go back to useing correct name for unity greeter (especially in media player)
Diffstat (limited to 'src/volume-control.vala')
-rw-r--r-- | src/volume-control.vala | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/volume-control.vala b/src/volume-control.vala index 4c543f6..71fdefa 100644 --- a/src/volume-control.vala +++ b/src/volume-control.vala @@ -441,11 +441,8 @@ 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, bus_name, "/list"); + _greeter_proxy = yield Bus.get_proxy (BusType.SESSION, "com.canonical.UnityGreeter", "/list"); } catch (GLib.Error e) { warning ("unable to get greeter proxy: %s", e.message); return; |