diff options
-rw-r--r-- | src/media-player-list-greeter.vala | 5 | ||||
-rw-r--r-- | src/volume-control.vala | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/src/media-player-list-greeter.vala b/src/media-player-list-greeter.vala index a36e970..4842dc3 100644 --- a/src/media-player-list-greeter.vala +++ b/src/media-player-list-greeter.vala @@ -29,12 +29,9 @@ public class MediaPlayerListGreeter : MediaPlayerList { HashTable<string, MediaPlayerUser> players = new HashTable<string, MediaPlayerUser>(str_hash, str_equal); public MediaPlayerListGreeter () { - var bus_name = Environment.get_variable ("UNITY_GREETER_DBUS_NAME"); - if (bus_name == null) - bus_name = "com.canonical.UnityGreeter"; Bus.get_proxy.begin<UnityGreeterList> ( BusType.SESSION, - bus_name, + "com.canonical.UnityGreeter", "/list", DBusProxyFlags.NONE, null, 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; |