GEOCLUE CONFIGURATION(5) | File Formats Manual | GEOCLUE CONFIGURATION(5) |
geoclue.conf - geoclue configuration parameters
Main configuration file: /etc/geoclue/geoclue.conf
Overwriting parameters files: /etc/geoclue/conf.d
The main GeoClue configuration file 'geoclue.conf' specifies parameters that control the operation of geoclue. Parameters can be overwritten by placing configuration files in conf.d directory and applied in alphabetic order. Thus, a configuration file '90-config.conf' will overwrite parameters specified in another configuration file '50-config.conf' in the conf.d directory.
All configurations settings below are mandatory and the defaults are what you see before you edit them in geoclue.conf. If you want to keep the default values around, copy and comment out the appropriate line(s) before changing them.
Missing 'enable' key for a particular source in the main configuration file causes that source to be enabled by default. Adding 'enable' key setting to any further config file can overwrite this default.
[agent] is used to begin the agent configuration.
Having an entry here for an application with allowed=true means that geoclue will not ask agent to authorize the application. This is to ensure that applications with built-in authorization mechanism (e.g web browsers) do not have to be bound to agents.
If your application is denied access to location information and your operating system doesn't provide any mechanism to change that, it is likely a bug in your operation system (or geoclue). The solution is to report the issue with all details, rather than adding your application to this list.
allowed=true|false
Allowed access to location information?
system=true|false
Is application a system component?
users=
List of UIDs of all users for which this application is allowed location info
access, separate by ';'. Keep it empty for allowing it for all users.
[gnome-color-panel]
allowed=true
system=true
users=
[org.gnome.Shell]
allowed=true
system=true
users=
[io.elementary.desktop.agent-geoclue2]
allowed=true
system=true
users=
[epiphany]
allowed=true
system=false
users=
[firefox]
allowed=true
system=false
users=
The static location file in /etc (used by the static source) is a text file consisting of the following:
These values need to be separated by newline characters.
# Example static location file for a machine inside Statue of Liberty torch 40.6893129 # latitude -74.0445531 # longitude 96 # altitude 1.83 # accuracy radius (the diameter of the torch is 12 feet)
For extra security, the static location file can be made readable just by the geoclue user:
# chown geoclue /etc/geolocation # chmod 600 /etc/geolocation
Sachin Chand