aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-02-25 16:47:45 -0600
committerTed Gould <ted@gould.cx>2014-02-25 16:47:45 -0600
commite9216681e8644d91d8efc2aff76810d9172e48a6 (patch)
tree2378215580721c8ba0f4426564e849122c367229 /src
parentc003018253a7f1574c5f370bf2e1c2148e1df328 (diff)
downloadayatana-indicator-sound-e9216681e8644d91d8efc2aff76810d9172e48a6.tar.gz
ayatana-indicator-sound-e9216681e8644d91d8efc2aff76810d9172e48a6.tar.bz2
ayatana-indicator-sound-e9216681e8644d91d8efc2aff76810d9172e48a6.zip
Truth is difficult
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
-rw-r--r--src/media-player-list-mpris.vala2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index a14bdea..e9a148e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -23,7 +23,7 @@ main (int argc, char ** argv) {
MediaPlayerList * playerlist = NULL;
- if (g_strcmp0("lightdm", g_get_user_name())) {
+ if (g_strcmp0("lightdm", g_get_user_name()) == 0) {
playerlist = MEDIA_PLAYER_LIST(media_player_list_greeter_new());
} else {
playerlist = MEDIA_PLAYER_LIST(media_player_list_mpris_new());
diff --git a/src/media-player-list-mpris.vala b/src/media-player-list-mpris.vala
index 0ed3c72..65fb886 100644
--- a/src/media-player-list-mpris.vala
+++ b/src/media-player-list-mpris.vala
@@ -55,6 +55,8 @@ public class MediaPlayerListMpris : MediaPlayerList {
* Adds the player associated with @desktop_id. Does nothing if such a player already exists.
*/
MediaPlayerMpris? insert (string desktop_id) {
+ debug("Inserting player: %s", desktop_id);
+
var id = desktop_id.has_suffix (".desktop") ? desktop_id : desktop_id + ".desktop";
MediaPlayerMpris? player = this._players.lookup (id);