summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-01-03 20:15:23 +0100
committerMax Kellermann <max@musicpd.org>2017-01-03 20:15:23 +0100
commit0345c1e6f86175eec27981abbc9a3f3e2b67f8c9 (patch)
tree6dfc7cf6bd5cc3bfca0379f26edce0100f7185f3 /doc
parentf6c4cda0d428283cc15a5867de6a07a0bffa6def (diff)
doc/user: more general documentation about the configuration file
Diffstat (limited to 'doc')
-rw-r--r--doc/user.xml34
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/user.xml b/doc/user.xml
index 082ba9188..14ccf1a21 100644
--- a/doc/user.xml
+++ b/doc/user.xml
@@ -199,6 +199,40 @@ systemctl start mpd.socket</programlisting>
<chapter id="config">
<title>Configuration</title>
+ <section id="config_file">
+ <title>The Configuration File</title>
+
+ <para>
+ <application>MPD</application> reads its configuration from a
+ text file. Usually, that is
+ <filename>/etc/mpd.conf</filename>, unless a different path is
+ specified on the command line. If you run
+ <application>MPD</application> as a user daemon (and not as a
+ system daemon), the configuration is read from
+ <filename>$XDG_CONFIG_HOME/mpd/mpd.conf</filename> (usually
+ <filename>~/.config/mpd/mpd.conf</filename>).
+ </para>
+
+ <para>
+ Each line in the configuration file contains a setting name
+ and its value, e.g.:
+ </para>
+
+ <programlisting>connection_timeout "5"</programlisting>
+
+ <para>
+ Some of the settings are grouped in blocks with curly braces,
+ e.g. per-plugin settings:
+ </para>
+
+ <programlisting>audio_output {
+ type "alsa"
+ name "My ALSA output"
+ device "iec958:CARD=Intel,DEV=0"
+ mixer_control "PCM"
+}</programlisting>
+ </section>
+
<section id="config_music_directory">
<title>Configuring the music directory</title>