diff options
author | Ted Gould <ted@gould.cx> | 2014-02-25 16:47:45 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-02-25 16:47:45 -0600 |
commit | e9216681e8644d91d8efc2aff76810d9172e48a6 (patch) | |
tree | 2378215580721c8ba0f4426564e849122c367229 /src | |
parent | c003018253a7f1574c5f370bf2e1c2148e1df328 (diff) | |
download | ayatana-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.c | 2 | ||||
-rw-r--r-- | src/media-player-list-mpris.vala | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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); |