tomtaylor / satellite-eyes

Mac OS X app to automatically set your desktop wallpaper to the satellite view overhead.
http://satelliteeyes.tomtaylor.co.uk
Other
663 stars 61 forks source link

Timeout & retry for location services #21

Open acdha opened 11 years ago

acdha commented 11 years ago

I've noticed that satellite-eyes frequently gets stuck “waiting for location fix” when I wake my laptop from sleep at work, where I have both WiFi (behind a captive portal) and an ethernet interface. This appears to be a race condition – if I wake the laptop without the ethernet cable and then plug it in, everything is fine – but it seems like satellite-eyes should have some reasonable timeout (5 minutes?) for the location query as there's otherwise no way to force an update short of restarting the app.

tomtaylor commented 11 years ago

Yes, this sounds like a bug, but I'd like to fix it by detected changes in network availability, rather than using a timer. I have no time to implement this right now, so patches welcome.