configuration via command line after 5.4 release #129
-
Before version 5.4 I was able to configure everything via the mympd.conf file. With 5.4, mympd.conf is not used for most of mympd settings so I decided to do some tests with /var/lib/mympd/state files. I need to change background, enable cover images, name the cover Folder.jpg and set MPD music directory, so I did the following:
Apart from the new background color, none of the other commands did the job. I had a look at the web interface settings, and realized that:
Am I missing something? The reason I am trying to configure this way, Is because I want to create an Archlinux package with all my settings pre-configured, so all these echo commands, will hopefully be placed withing my PKGBUILD. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
All configuration can be done through mympd.conf. The initial values of the state files are from mympd.conf environment or compile time defaults. See the wiki under https://github.com/jcorporation/myMPD/wiki/Configuration Also your approach should work. Your error is that you write a newline character in the state files, use echo -n and it should work. Configuration through mympd.conf is my prefered way. Ship a empty state dir. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply. I kept using some old variables in mympd.conf file and this is why they did not work. I updated as per the new sections and names and now it's ok. |
Beta Was this translation helpful? Give feedback.
All configuration can be done through mympd.conf. The initial values of the state files are from mympd.conf environment or compile time defaults. See the wiki under https://github.com/jcorporation/myMPD/wiki/Configuration
Also your approach should work. Your error is that you write a newline character in the state files, use echo -n and it should work.
Configuration through mympd.conf is my prefered way. Ship a empty state dir.