[SOLVED] Lost Kodi settings after crash

If Kodi crashes in such a way that guisettings.xml is corrupted on next start Kodi will detect it is corrupted and throw it away generating a new, default guisettings.xml.

This is normal Kodi behaviour if a corrupt file is detected on start. So Kodi must have been writing to guisettings.xml at the time it crashed.