summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-04-07modem-manager: Enable assisted GPS as soon as modem is enabledHEADmasterTeemu Ikonen1-27/+56
Skip enabling AGPS if ModemManager does not have a SUPL server configured. Do not clear AGPS caps in gclue_modem_manager_disable_gps(). Geoclue now enables AGPS caps on modem initialization / enablement and never clears them. Remove MM version checks, since we now depend on ModemManager >= 1.12.
2024-04-07meson: Bump ModemManager dependency to version 1.12Teemu Ikonen1-1/+1
2024-04-07modem-manager: Read GPS locations from non-enabled modemTeemu Ikonen1-19/+36
This is allowed in ModemManager versions >= 1.23.2. A version check is not necessary, on older versions MM will simply not give a MMModemLocation object if the modem is not enabled.
2024-04-07Revert "modem-manager: Only disable the given capability in clear_caps()"Teemu Ikonen1-5/+1
mm_modem_location_get_enabled() uses g_dbus_proxy_get_cached_property() under the hood, so the returned value will not be correct if MM caps are updated by more than one source close in time. This can happen for example when a client using both MM GPS and 3G sources quits. The GPS capability is cleared first, but the update is not reflected in the cached 'enabled' property. The 3G cap is cleared next, but it gets an incorrect value from mm_modem_location_get_enabled and turns the GPS back on. This reverts commit a9caa550df128bb04f28b3f3c94d909b0d140e15.
2024-04-01man: Document sending SIGUSR1 to print client listTeemu Ikonen1-0/+3
2024-04-01man: Remove dangling spacesTeemu Ikonen1-9/+9
2024-04-01service-manager: Log client list on SIGUSR1Teemu Ikonen1-1/+38
2023-12-25modem-manager: Only disable the given capability in clear_caps()Teemu Ikonen1-1/+5
Get enabled MM location capabilities just before disabling a capability in clear_caps(). This has a race condition, but is probably the best we can do.
2023-12-25location: RMC sentences before NMEA v2.3 had only 11 parts, accept themTeemu Ikonen1-1/+1
2023-10-22Add .editorconfigTeemu Ikonen1-0/+24
2023-10-22Convert tabs to spaces and remove trailing whitespaceTeemu Ikonen5-34/+34
2023-10-13config: Don't warn about missing conf.d directoryKira Bruneau1-2/+4
2023-09-03Release 2.7.12.7.1Teemu Ikonen2-1/+22
2023-09-02simple: Correct gi annotationsPhilipp Hörist1-2/+2
2023-09-01HACKING: Remove gio version from dependency listTeemu Ikonen1-1/+1
2023-09-01meson: Upgrade GLib / Gio dependency to version 2.68.0Teemu Ikonen1-3/+3
Geoclue uses g_string_replace() and also depends on newer GLib versions through libsoup3.
2023-09-01data/meson.build: Install D-Bus policy in /usr/share, not /etcGioele Barabucci1-1/+1
From https://bugs.debian.org/1006631: > dbus supports policy files in both `/usr/share/dbus-1/system.d` and > `/etc/dbus-1/systemd`. [The] recently released dbus 1.14.0, officially > deprecates installing packages' default policies into `/etc/dbus-1/systemd`, > instead reserving it for the sysadmin. This is the same idea as the > difference between `/usr/lib/udev/rules.d` and `/etc/udev/rules.d`.
2023-08-05locator: add a priority source lock to prevent location jumpsChris Talbot1-10/+43
2023-07-28modem-gps: make priority source trueChris Talbot1-1/+3
2023-07-28nmea-source: make priority source trueChris Talbot1-1/+3
2023-07-28location-source: Add priority source propertyChris Talbot2-0/+40
2023-07-27gclue-locator: Delete Trailing WhitespaceChris Talbot1-1/+1
2023-07-22nmea-source: Don't disconnect when receiving an empty messageTeemu Ikonen1-4/+9
Convert a NULL message received without an error to an empty string and keep on listening to the NMEA source. See https://gitlab.gnome.org/GNOME/glib/-/issues/655
2023-07-17location: Warn if NMEA coordinates are invalidTeemu Ikonen1-2/+6
2023-07-17location: Remove error arg from gclue_location_create_from_nmeasTeemu Ikonen4-26/+8
Also adapt callers.
2023-07-17location: Correctly describe combined GGA+RMC locationsTeemu Ikonen1-0/+1
2023-07-17nmea-source: Don't print unknown NMEA sentences twice to debug logTeemu Ikonen1-2/+0
2023-07-08location: Fix RMC status field checkTeemu Ikonen1-1/+2
2023-07-08gclue-location: remove error from gclue_location_create_from_gga ()Chris Talbot1-12/+4
2023-07-08gclue-location: Don't add any GPS locations if the GGA sentence doesn't show ↵Chris Talbot1-0/+5
a fix
2023-06-17gclue-location: remove error from gclue_location_create_from_rmc ()Chris Talbot1-13/+7
2023-06-17gclue-location: Reject RMC sentence if it is invalid, give bounds for ↵Chris Talbot1-11/+27
accuracy if unknown or old
2023-06-17location: Rewrite parse_nmea_timestampTeemu Ikonen1-39/+26
Use gclue_nmea_timestamp_to_timespan to parse NMEA timestamps.
2023-06-17nmea-utils: Add function gclue_nmea_timestamp_to_timespanTeemu Ikonen2-0/+37
2023-05-14gclue-locator: Ignore values that have unknown accuracyChris Talbot1-0/+8
2023-05-07gclue-web-source: make sure the accuracy is known before sending a ↵Chris Talbot1-0/+2
submission query
2023-04-29mozilla: Add 'age' field to MLS locate queriesTeemu Ikonen1-1/+7
2023-04-29CI: Use detached CI pipelinesTeemu Ikonen1-2/+4
This should allow running pipelines again per freedesktop/freedesktop#540
2023-01-22Release 2.7.02.7.0Maciej S. Szmigiero2-1/+30
Thanks to all who contributed to this release! Closes: #172
2023-01-22config: Debug log config also when conf.d dir is missingTeemu Ikonen1-2/+2
2023-01-21config: Debug log locate and submit URLs on startupTeemu Ikonen1-0/+29
Redact the API key, if a 'key' parameter is found in the URL string.
2023-01-20data: meson: drop deprecated get_pkgconfig_variable()Dylan Van Assche1-1/+1
Meson 0.56.0 deprecated get_pkgconfig_variable(), use get_variable() instead.
2023-01-20meson: drop deprecated source_root()Dylan Van Assche1-1/+1
Meson 0.56.0 deprecated source_root(), use project_source_root() instead.
2023-01-20data: geoclue.5.in: adjust man pageDylan Van Assche1-3/+13
Mention conf.d overwrites in man page
2023-01-20config: print extracted configDylan Van Assche1-0/+51
Print out the extracted config including conf.d overwrites for debugging-only.
2023-01-20meson: install conf.d directoryDylan Van Assche3-2/+5
Bump to meson 0.60.0 for install_emptydir support to install conf.d directory.
2023-01-20config: add support for conf.d styleDylan Van Assche1-99/+263
Distros may want to overwrite various parameters of GeoClue's config file without shipping a complete config file which may result into out-of-sync config files when newer GeoClue versions are released. Support /etc/geoclue/conf.d/ as a config directory in which distros can place overwrites, the config files are loaded in alphabetic order and overwrite the original config file parameters stored in /etc/geoclue/geoclue.conf
2023-01-15Add static location sourceMaciej S. Szmigiero11-9/+647
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.
2023-01-14Remove manual GDateTime memory managementMaciej S. Szmigiero2-10/+10
2023-01-14Use automatic char* memory management where possibleMaciej S. Szmigiero6-24/+17
Remove explicit g_free () calls and convert char* allocations to g_autofree. Fixes at least one memory leak in gclue_service_agent_handle_authorize_app ().