Fix geolocation detection on Linux
This workaround points GeoClue’s Wi-Fi location requests at BeaconDB instead of Mozilla Location Services, then restarts GeoClue so Linux apps can query location again.
With the shutdown of the Mozilla Location Services, many Linux distributions don’t get the information necessary for automatic date, time, timezone and map location anymore.
One alternative is to use beaconDB. Thanks to its API compatibility with MLS, the fix is simple. In /etc/geoclue/geoclue.conf, change the [wifi] section as follows:
[wifi]
enabled=true
url=https://beacondb.net/v1/geolocate
After a systemctl restart geoclue, location detection should be working again.