aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);