Commit 927d334a authored by Ivan Mazhukin's avatar Ivan Mazhukin

Fix conf file

parent 2fea4b17
######################## REQUIRED PATHS ###############################
music_directory "~/Music"
music_directory "@localstatedir@/mpd/music"
playlist_directory "@localstatedir@/mpd/playlists"
log_file "@logdir@/mpd/mpd.log"
db_file "@localstatedir@/mpd/mpd.db"
......@@ -11,8 +11,9 @@ state_file "@localstatedir@/mpd/mpdstate"
#######################################################################
######################## DAEMON OPTIONS ###############################
#user "nobody"
bind_to_address "127.0.0.1"
# user "_mpd"
# group "_mpd"
bind_to_address "localhost"
#bind_to_address "any"
port "6600"
# "default", "secure", or "verbose".
......@@ -20,13 +21,13 @@ log_level "default"
#zeroconf_name "Music Player"
audio_output {
type "alsa"
name "alsa"
type "pulse"
name "My Pulse Output"
}
#samplerate_converter "Fastest Sinc Interpolator"
mixer_type "alsa"
#mixer_type "alsa"
#mixer_device "default"
#mixer_control "PCM"
......@@ -57,7 +58,7 @@ mixer_type "alsa"
###################### CHARACTER ENCODINGS ############################
#filesystem_charset "ISO-8859-1"
id3v1_encoding "CP1251"
filesystem_charset "UTF-8"
######################### OTHER OPTIONS ###############################
#gapless_mp3_playback "yes"
......
......@@ -234,6 +234,7 @@ chmod 755 %buildroot%_initdir/%name
sed 's/@MPD_USER@/%mpd_user/g' %SOURCE5 > %buildroot%_tmpfilesdir/%name.conf
chmod 644 %buildroot%_tmpfilesdir/%name.conf
install -D -m 0644 %SOURCE4 %buildroot%_sysconfdir/logrotate.d/%name
mkdir -m 775 %buildroot%_localstatedir/%name/music
%pre
%_sbindir/groupadd -r -f %mpd_group &>/dev/null ||:
......@@ -269,7 +270,7 @@ install -D -m 0644 %SOURCE4 %buildroot%_sysconfdir/logrotate.d/%name
%attr(775,root,%mpd_group) %dir %_localstatedir/%name/playlists
%attr(775,root,%mpd_group) %dir %_logdir/%name
%_iconsdir/hicolor/scalable/apps/%name.svg
%attr(775,root,%mpd_group) %dir %_localstatedir/%name/music
%if_enabled doc
%files doc
%_defaultdocdir/%name
......
......@@ -77,7 +77,7 @@ mixer_type "alsa"
###################### CHARACTER ENCODINGS ############################
#filesystem_charset "ISO-8859-1"
id3v1_encoding "CP1251"
filesystem_charset "CP1251"
######################### OTHER OPTIONS ###############################
#gapless_mp3_playback "yes"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment