summaryrefslogtreecommitdiff
path: root/archsetup
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-27 06:50:43 -0600
committerCraig Jennings <c@cjennings.net>2026-01-27 07:03:35 -0600
commitcc07b26ea8a4ba0221b0af4e134b17566123a10a (patch)
tree799e5c82422bc258caf70e95ea452914f4f74605 /archsetup
parent90b25937a62af59de636a160fdab40439261f35a (diff)
fix(archsetup): enable BeaconDB for geoclue location service
Default Mozilla Location Service (Ichnaea) API is defunct (returns 404). Uncomment BeaconDB community replacement URL in geoclue.conf.
Diffstat (limited to 'archsetup')
-rwxr-xr-xarchsetup6
1 files changed, 6 insertions, 0 deletions
diff --git a/archsetup b/archsetup
index 01faa82..73654a8 100755
--- a/archsetup
+++ b/archsetup
@@ -1081,6 +1081,12 @@ EOF
action="enabling geoclue geolocation service" && display "task" "$action"
systemctl enable geoclue.service >> "$logfile" 2>&1 || error_warn "$action" "$?"
+ # Enable BeaconDB as geoclue wifi location provider (default MLS/Ichnaea API is defunct)
+ action="configuring geoclue to use BeaconDB location service" && display "task" "$action"
+ if grep -q '^#url=https://api.beacondb.net/v1/geolocate' /etc/geoclue/geoclue.conf 2>/dev/null; then
+ sed -i 's|^#url=https://api.beacondb.net/v1/geolocate|url=https://api.beacondb.net/v1/geolocate|' /etc/geoclue/geoclue.conf
+ fi
+
# Whitelist gammastep in geoclue config (geoclue demo agent is started via hyprland.conf exec-once)
action="whitelisting gammastep in geoclue" && display "task" "$action"
if ! grep -q "^\[gammastep\]" /etc/geoclue/geoclue.conf 2>/dev/null; then