jcorporation / myMPDos

A music player image for Raspberry Pi based on Alpine Linux, MPD and myMPD.
https://jcorporation.github.io/
GNU General Public License v3.0
28 stars 6 forks source link

Storage location for home icons #39

Closed jcorporation closed 5 months ago

jcorporation commented 5 months ago

Discussed in https://github.com/jcorporation/myMPD/discussions/1259

Originally posted by **bostrump** April 18, 2024 My question relates to [myMPDos](https://github.com/jcorporation/myMPDos), but there is no discussion area for this project. Who can tell me how the home icons are persisted? I would have expected home icons to be saved in a status file ("home_list"?) in "/var/lib/mympd/state". After creating an icon, I can't see any changes there. However, the new home icon does appear on another end device when I open the myMPD web interface there. So the home icon must be persisted somewhere, but where? Why I'm asking: After reebot using the myMPDos script savereboot.sh, all home icons are lost. So they are obviously not captured by the Alpine Linux "lbu commit". I don't know if there is a correlation, but it is noticeable that after reebot is finished the web interface can no longer connect to myMPD. Error mesage: "API Fehler" "Fehler beim Zugriff auf /api/default" Only after reloading the page does the connection work again (but without home icons) Other settings are saved correctly (e.g. background color) I created the myMPDos image on 17.04.2024 (using myMPD 14.1.2) and it is running on Raspberry Pi 4 B.
jcorporation commented 5 months ago

Try killall -HUP mympd and cat /var/lib/mympd/state/home_list to check if myMPD writes the file correctly.

The lbu_commit should save the /var/lib/mympd/state directory. Additional includes for lbu are: