geigi / cozy

🎧 Listen to audio books 📚 on Linux
https://cozy.sh
GNU General Public License v3.0
1.09k stars 84 forks source link

Fix "invalid version" crash on startup #762

Closed suve closed 8 months ago

suve commented 1 year ago

This commit fixes the program crashing because of an uncaught exception. The bug was triggered by app_settings.last_launched_version being unset - which would always be the case when launching the program for the first time.

The bug can also be triggered by manually changing the setting to an invalid value - e.g. by running:

$ gsettings set com.github.geigi.cozy last-launched-version 'ayy lmao'

Fixes issue #756.

rapenne-s commented 1 year ago

I encountered this bug after updating the OpenBSD package, I confirm it fixes #756