summaryrefslogtreecommitdiff
path: root/data/geoclue.conf.in
diff options
context:
space:
mode:
authorMaciej S. Szmigiero <maciej.szmigiero@oracle.com>2023-01-05 20:47:24 +0100
committerMaciej S. Szmigiero <maciej.szmigiero@oracle.com>2023-01-15 13:50:23 +0100
commitcb66669cff959046c8ef02abe13fc4f1a68660c5 (patch)
treed969ebeecb694d25b007068242916f435d77c7f0 /data/geoclue.conf.in
parent0cc334a44ed0384785379996e7f20e85f26e624f (diff)
downloadgeoclue-cb66669cff959046c8ef02abe13fc4f1a68660c5.tar.gz
Add static location source
There were many requests to provide a static location source for systems which don't normally move but where the existing location sources provide poor location estimate. An example of such system would be a desktop PC without WiFi or 3G modem. So let's add a source that reads location from "geolocation" file in @sysconfdir@ (normally /etc) to cover this use case. This file is constantly monitored for changes during Geoclue operation and the reported static location is updated accordingly. The geoclue(5) man page should be consulted for the format description of this file.
Diffstat (limited to 'data/geoclue.conf.in')
-rw-r--r--data/geoclue.conf.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/data/geoclue.conf.in b/data/geoclue.conf.in
index 8006cda..9afb5e0 100644
--- a/data/geoclue.conf.in
+++ b/data/geoclue.conf.in
@@ -43,6 +43,8 @@ enable=true
[wifi]
# Enable WiFi source
+# If this source and the static source below are both disabled a GeoIP-only
+# source will be used instead.
enable=true
# URL to the WiFi geolocation service. If not set, defaults to Mozilla's
@@ -86,6 +88,17 @@ submission-nick=geoclue
# Enable Compass
enable=true
+# Static source configuration options
+#
+# This source reads location from "geolocation" file in @sysconfdir@ - please
+# consult geoclue(5) man page for the format description of this file.
+[static-source]
+
+# Enable the static source
+# If you make use of this source, you probably should disable other location
+# sources in this file so they won't override the configured static location.
+enable=true
+
# Application configuration options
#
# NOTE: Having an entry here for an application with allowed=true means that