Read MPD connection data from environment.
authorOle Christian Tvedt <olechrt@stud.ntnu.no>
Sun, 14 Jun 2009 23:15:04 +0000 (01:15 +0200)
committerBrenden Matthews <brenden@rty.ca>
Mon, 15 Jun 2009 02:07:59 +0000 (20:07 -0600)
commit9048af353aa7fd4e91ab709f30d5628c3120e42a
tree633046f4e0a6c8fa9275e238db7364de66016186
parent8b9f0b685140759341f6380addabb55fa5911822
Read MPD connection data from environment.

Most MPD clients read the MPD_HOST and MPD_PORT
environment variables. Now, conky will too.

MPD_HOST can be either "hostname" or "password@hostname".

If a user specifies a host in the configuration, the
password set in MPD_HOST will be ignored. This is to
prevent the password from being sent to the wrong host.

In other words, if the host is specified in the conky
configuration, the password must be too (if there is
one).

Signed-off-by: Brenden Matthews <brenden@rty.ca>
src/conky.c
src/mpd.c
src/mpd.h