From 656d39f9802d0317178caf68b3f942403d29f47c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Mon, 28 Apr 2025 17:08:07 -0700 Subject: [PATCH 1/2] Add becaondb for GeoClue --- geoclue/beacondb.conf | 3 +++ geoclue/meson.build | 5 +++++ meson.build | 3 +++ 3 files changed, 11 insertions(+) create mode 100644 geoclue/beacondb.conf create mode 100644 geoclue/meson.build diff --git a/geoclue/beacondb.conf b/geoclue/beacondb.conf new file mode 100644 index 0000000..95d6996 --- /dev/null +++ b/geoclue/beacondb.conf @@ -0,0 +1,3 @@ +[wifi] +enable=true +url=https://api.beacondb.net/v1/geolocate diff --git a/geoclue/meson.build b/geoclue/meson.build new file mode 100644 index 0000000..d14dc46 --- /dev/null +++ b/geoclue/meson.build @@ -0,0 +1,5 @@ +install_data( + 'beacondb.conf', + rename: '99-beacondb.conf', + install_dir: sysconfdir / 'geoclue' / 'conf.d' +) diff --git a/meson.build b/meson.build index 7c214a9..5914db5 100644 --- a/meson.build +++ b/meson.build @@ -47,5 +47,8 @@ subdir('accountsservice') # System skeleton subdir('skel') +# Geolocation settings +subdir('geoclue') + # GTK settings subdir('gtk') From e018f8cc108d46d8bc30cfd484fdd527cf092888 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Mon, 28 Apr 2025 17:12:58 -0700 Subject: [PATCH 2/2] Add useragent as requested --- geoclue/beacondb.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geoclue/beacondb.conf b/geoclue/beacondb.conf index 95d6996..d950346 100644 --- a/geoclue/beacondb.conf +++ b/geoclue/beacondb.conf @@ -1,3 +1,3 @@ [wifi] enable=true -url=https://api.beacondb.net/v1/geolocate +url=https://api.beacondb.net/v1/geolocate?key=geoclue_elementaryos