aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Terry <michael.terry@canonical.com>2014-04-01 16:37:35 -0400
committerMichael Terry <michael.terry@canonical.com>2014-04-01 16:37:35 -0400
commit0bc794899a7d4500d76b2a9ec3c6f311d6c25312 (patch)
treed4e042ea9e74fbd688e6a3e7912620063250e29a /src
parent5a20cd1f342ab4ae4dd7caacf2cec8d61bfe54be (diff)
downloadayatana-indicator-sound-0bc794899a7d4500d76b2a9ec3c6f311d6c25312.tar.gz
ayatana-indicator-sound-0bc794899a7d4500d76b2a9ec3c6f311d6c25312.tar.bz2
ayatana-indicator-sound-0bc794899a7d4500d76b2a9ec3c6f311d6c25312.zip
And fix media player usage too
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,