aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/media-player-list-greeter.vala5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/media-player-list-greeter.vala b/src/media-player-list-greeter.vala
index 15e4c55..a36e970 100644
--- a/src/media-player-list-greeter.vala
+++ b/src/media-player-list-greeter.vala
@@ -29,9 +29,12 @@ 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,
- "com.canonical.Unity",
+ bus_name,
"/list",
DBusProxyFlags.NONE,
null,