summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* web-source: Update internet availability when connectivity changeswip/hadess/reduce-internet-availBastien Nocera2018-10-291-0/+20
| | | | | Going from limited ("captive portal") to full internet should update the internet availability.
* web-source: Minimise get_internet_available() callsBastien Nocera2018-10-291-10/+9
| | | | | | Rather than calling get_internet_available() too often, use the cached ->internet_available variable and call get_internet_available() when network status has actually changed.
* Trivia: Fix several typosLaurent Bigonville2018-10-222-3/+3
| | | | Thanks to lintian
* build: Gather common path variables in root meson.buildJan Alexander Steffens (heftig)2018-10-217-25/+21
| | | | This eliminates a lot of get_option and some join_paths.
* build: Make dbus_interface_dir absoluteJan Alexander Steffens (heftig)2018-10-211-4/+4
| | | | Removes the need for a separate abs_dbus_interface_dir.
* build: Rename abs_header_dir to include_subdirJan Alexander Steffens (heftig)2018-10-212-6/+6
| | | | | | | This is a better name as it's not absolute but a subdirectory of the includedir, relative to the prefix. Also rename the identical install_dir in public-api.
* build: Fix a double space (whitespace)Jan Alexander Steffens (heftig)2018-10-211-1/+1
|
* build: Ensure SYSCONFDIR is absoluteJan Alexander Steffens (heftig)2018-10-211-1/+1
| | | | | Much like libexecdir, sysconfdir is relative if and only if contained within the prefix.
* build: Use join_paths for LOCALEDIR and public-api install_dirJan Alexander Steffens (heftig)2018-10-212-2/+2
| | | | These were missed in dc46a4d942dc.
* Release 2.5.12.5.1Zeeshan Ali2018-10-162-1/+7
|
* Re-add gclue_accuracy_level_get_string()Zeeshan Ali2018-10-153-1/+55
| | | | | | | | | | | | This function was being generated when we were using autotools because it was part of our template. We unintentially dropped it when we ported to meson's gnome.mkenums_simple() as that uses it's own template that doesn't include this function. This broke ABI in 2.5.0 and hence we now re-add it, implementing it manually. Fixes #90.
* build: Use join_paths instead of concatenating the paths manuallyLaurent Bigonville2018-10-155-12/+12
|
* build: Set absolute path of libexecdirLaurent Bigonville2018-10-152-2/+2
| | | | | | get_option('libexecdir') contains the path to libexecdir WITHOUT the prefix, we need to prepend the correct prefix to the expanded path is correct
* Release 2.5.02.5.0Zeeshan Ali2018-10-142-1/+27
|
* build: Don't hardcode the path of python3Ting-Wei Lan2018-10-022-2/+2
| | | | | | | Hardcoding paths to interpreters seldom works on *BSD. The ports system allows users to choose their preferred installation prefix as long as it is not /usr. This makes it nearly impossible to have a common path of python3 which works on both GNU/Linux and *BSD.
* CI: Build with NMEA source enabledZeeshan Ali2018-09-251-3/+3
|
* CI: Always keep build artifactsZeeshan Ali2018-09-251-3/+3
|
* CI: Keep all build artifactsZeeshan Ali2018-09-251-3/+3
|
* build: Correct python pathZeeshan Ali2018-09-251-1/+1
| | | | On debian-based systems, there is no '/bin/python3'.
* build: Install demo agent to autostart directory tooZeeshan Ali2018-09-252-6/+40
| | | | We were doing this already but forgot to port this from autotools to meson.
* CI: Save artifacts on build failureZeeshan Ali2018-09-241-0/+15
|
* CI: Fetch gettext & ModemManager from distroZeeshan Ali2018-09-241-5/+1
| | | | I'm not sure why we were building these from sources.
* CI: no need to checkout geoclueZeeshan Ali2018-09-241-3/+3
| | | | | CI already does this for us. Before this change, we were always building the master branch and that meant merge requests weren't getting tested.
* Revert "build: Install demo agent to autostart directory too"Zeeshan Ali2018-09-242-26/+6
| | | | This reverts commit b8fa586f84c5fa485fe3924becc4ff2b08d55938.
* Revert "build: Pass absolute path of sysconfdir to install-file.py"Zeeshan Ali2018-09-241-2/+1
| | | | This reverts commit 3e9567962d6ea45d8929027dfec6e42ee0e951ca.
* build: Pass absolute path of sysconfdir to install-file.pyZeeshan Ali2018-09-241-1/+2
|
* build: Install demo agent to autostart directory tooZeeshan Ali2018-09-242-6/+26
| | | | We were doing this already but forgot to port this from autotools to meson.
* Revert "build: Install demo agent to autostart directory too"Zeeshan Ali2018-09-241-10/+6
| | | | This reverts commit 8556d0edf685424086c191ab2c6ec344c84cbdda.
* build: Install demo agent to autostart directory tooZeeshan Ali2018-09-241-6/+10
| | | | We were doing this already but forgot to port this from autotools to meson.
* conf: Document that all settings are mandatoryZeeshan Ali2018-09-201-0/+5
| | | | Fixes #87.
* service: Console message on inactivity timeoutZeeshan Ali2018-09-171-0/+2
|
* service: Increase agent timeout from 100ms to 20sZeeshan Ali2018-09-171-2/+4
| | | | | | | This should give sufficient amount of time for agents to register themselves before any dbus calls can timeoout (30s by default). Fixes #84.
* service: Increase default inactivity timeout to 60sZeeshan Ali2018-09-171-2/+2
| | | | | | | | instead of 5 seconds. 5s is very short amount of time when system is very loaded and during startup of a desktop session. There is not harm in waiting 60s anyway. Also, the default value should be longer than the agent registeration timeout, which is currently 100ms but will be increased to 20s in a following patch.
* build: Use absolute paths in pkg-config variablesZeeshan Ali2018-09-171-2/+3
| | | | | Fixes https://gitlab.gnome.org/GNOME/gnome-build-meta/issues/62 (external).
* wifi: Use WiFi-based geolocation for city level accuracyZeeshan Ali2018-09-171-4/+23
| | | | | | | | | Since GeoIP can be easily extremely inaccurate, let's use WiFi-geolocation for city accuracy level. We scramble the location a bit so that apps requesting city accuracy level don't end up getting user's street location with 300 meters accuracy. Fixes #64.
* location-source: Internal API to scramble locationZeeshan Ali2018-09-171-0/+50
| | | | | We'll use this in a following patch to use WiFi location for city-level accuracy w/o giving away user's more exact location to the app.
* service: Allow disabling of all sources through configZeeshan Ali2018-09-154-27/+133
| | | | Fixes #46.
* build: Avoid too long lines using a variableZeeshan Ali2018-09-151-3/+4
|
* build: Fix installation of generated headersEmmanuele Bassi2018-09-151-3/+3
| | | | | The `install_dir` argument is relative to the prefix, not to the include directory specified in the `includedir` command line argument.
* build: Drop autotoolsZeeshan Ali2018-09-1319-1906/+0
|
* build: Require meson 0.47.2Zeeshan Ali2018-09-131-1/+1
|
* docs: Add dep on agent sourcesZeeshan Ali2018-09-131-1/+2
| | | | | | | | | | Docs need the generated agent docs and they are generated at the same time as the agent sources so not depending on them means, docs fail to build if they are built before the agent sources: ERROR: 'gtkdoc-mkhtml' failed with status 6 warning: failed to load external entity "../../src/agent/docs-org.freedesktop.GeoClue2.Agent.xml" ../geoclue-docs.xml:80: element include: XInclude error : could not load ../../src/agent/docs-org.freedesktop.GeoClue2.Agent.xml, and no fallback was found
* service: Drop authorization for system appsZeeshan Ali2018-09-121-6/+17
| | | | | | | | | | | | | | We do not have any way to reliably identify system apps and they can easily lie about their ID. So it does not make much sense to give users the illusion that they can control apps' access to their location. Moreover, recently we ran into a bunch of annoying and hard to solve issues related to authorization of system apps and we ended up with lots of angry users. Also we might also drop all agent/authorization in favour of an appropriate Flatpak portal soon anyway: https://gitlab.freedesktop.org/geoclue/geoclue/issues/83 Fixes #76, #80.
* demo: Drop a redundant paramZeeshan Ali2018-09-111-2/+1
| | | | | We don't install the destkop.in files so no reason to give the generation command an install dir.
* build: Make public_api header part of the sourceZeeshan Ali2018-09-111-1/+1
| | | | | This is to ensure that the service is not built until all the sources of public api are not ready yet.
* conf: add elementary-desktop-agent to whitelistworldofpeace2018-08-301-1/+6
|
* Fix the links between the documentation filesLaurent Bigonville2018-08-173-1/+7
| | | | https://gitlab.freedesktop.org/geoclue/geoclue/issues/78
* meson,build: Remove some newlines for meson 0.47.1Laurent Bigonville2018-08-171-3/+1
| | | | | | | | meson 0.47.1 is failing if the conditions are on multiple lines: $ meson -Dnmea-source=false -Dmodem-gps-source=false -Dcdma-source=false -D3g-source=false -Ddemo-agent=false -Dgtk-doc=true build [...] src/meson.build:93:3: ERROR: Unknown statement
* service: Allow absence of agent if agent white-list emptyZeeshan Ali2018-08-131-8/+17
| | | | | | | If no agent is white-listed in the configuration, there is no point in requiring an agent. Fixes #74.
* service,config: Internal API to get number of whitelisted agentsZeeshan Ali2018-08-132-0/+7
|