Calling g_settings_sync() makes sure the changes are written to disk.
Hence changing a gsettings setting was not persistent.
Use /dev/urandom as a seed for rand()
Comment sunriset.c's main()
Calculate local sunrise, sunset and twilight times and use it select wallpapers that fit the time of day