Advertisement
Guest User

/etc/geoclue/geoclue.conf

a guest
Mar 29th, 2025
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Configuration file for Geoclue
  2. #
  3. # NOTE: All configurations settings below are mandatory and the defaults are
  4. #       what you see before you edit them. If you want to keep the default
  5. #       values around, copy and comment out the appropriate line(s) before
  6. #       changing them.
  7.  
  8. # Agent configuration options
  9. [agent]
  10.  
  11. # Whitelist of desktop IDs (without .desktop part) of all agents we recognise,
  12. # separated by a ';'.
  13. whitelist=geoclue-demo-agent;gnome-shell;io.elementary.desktop.agent-geoclue2;sm.puri.Phosh;lipstick
  14.  
  15. # Network NMEA source configuration options
  16. [network-nmea]
  17.  
  18. # Fetch location from NMEA sources on local network?
  19. enable=true
  20.  
  21. # use aa nmea unix socket as the data source
  22. # nmea-socket=/var/run/gps-share.sock
  23.  
  24. # 3G source configuration options
  25. [3g]
  26.  
  27. # Enable 3G source
  28. enable=true
  29.  
  30. # CDMA source configuration options
  31. [cdma]
  32.  
  33. # Enable CDMA source
  34. enable=true
  35.  
  36. # Modem GPS source configuration options
  37. [modem-gps]
  38.  
  39. # Enable Modem-GPS source
  40. enable=true
  41.  
  42. # WiFi source configuration options
  43. [wifi]
  44.  
  45. enable=true
  46. url=https://api.beacondb.net/v1/geolocate
  47.  
  48. # submit data, only possible with a GPS antenna
  49. submit-data=true
  50. submission-url=https://api.beacondb.net/v2/geosubmit
  51. submission-nick=geoclue
  52.  
  53. # Enable WiFi source
  54. # If this source and the static source below are both disabled a GeoIP-only
  55. # source will be used instead.
  56. enable=true
  57.  
  58. # URL to the WiFi geolocation service. If not set, defaults to Mozilla's
  59. # Location Service with a hardcoded key. To use a custom key, uncomment this URL
  60. # while changing YOUR_KEY to your MLS API key.
  61. #url=https://location.services.mozilla.com/v1/geolocate?key=YOUR_KEY
  62.  
  63. # To use the Google geolocation service instead of Mozilla's, uncomment this URL
  64. # while changing YOUR_KEY to your Google API key.
  65. #
  66. # WARNING: Please make sure that you are complying with the Google's ToS and
  67. #          policies if you uncomment this:
  68. #
  69. # https://developers.google.com/maps/documentation/geolocation/policies
  70. #
  71. #url=https://www.googleapis.com/geolocation/v1/geolocate?key=YOUR_KEY
  72.  
  73. # Submit data to Mozilla Location Service
  74. # If set to true, geoclue will automatically submit network data to Mozilla
  75. # each time it gets a GPS lock.
  76. #
  77. # Currently, only Modem-GPS or Network NMEA sources are supported as providers
  78. # of a location to submit (one at a time).
  79. # If Modem-GPS source is enabled above it will be the exclusive provider
  80. # (regardless whether the system is actually equipped with such modem),
  81. # otherwise Network NMEA source will be considered.
  82. #
  83. #submit-data=false
  84.  
  85. # URL to submission API of Mozilla Location Service. If not set, defaults to
  86. # Mozilla's API with a hardcoded key. To use a custom key, uncomment this URL
  87. # while changing YOUR_KEY to your MLS API key.
  88. #submission-url=https://location.services.mozilla.com/v2/geosubmit?key=YOUR_KEY
  89.  
  90. # A nickname to submit network data with. A nickname must be 2-32 characters long.
  91. #submission-nick=geoclue
  92.  
  93. # Compass configuration options
  94. [compass]
  95.  
  96. # Enable Compass
  97. enable=true
  98.  
  99. # Static source configuration options
  100. #
  101. # This source reads location from "geolocation" file in /etc - please
  102. # consult geoclue(5) man page for the format description of this file.
  103. [static-source]
  104.  
  105. # Enable the static source
  106. # If you make use of this source, you probably should disable other location
  107. # sources in this file so they won't override the configured static location.
  108. enable=true
  109.  
  110. # Application configuration options
  111. #
  112. # NOTE: Having an entry here for an application with allowed=true means that
  113. #       geoclue will not ask agent to authorize the application. This is to
  114. #       ensure that applications with built-in authorization mechanism (e.g web
  115. #       browsers) do not have to be bound to agents.
  116. #
  117. #       If your application is denied access to location information and your
  118. #       operating system doesn't provide any mechanism to change that, it is
  119. #       likely a bug in your operation system (or geoclue). The solution is to
  120. #       report the issue with all details, rather than adding your application
  121. #       to this list.
  122. #
  123. # Format:
  124. #
  125. # # Desktop ID of application without .desktop part
  126. # [random-app]
  127. #
  128. # # Allowed access to location information?
  129. # allowed=true|false
  130. #
  131. # # Is application a system component?
  132. # system=true|false
  133. #
  134. # # List of UIDs of all users for which this application is allowed location
  135. # # info access, separate by ';'. Keep it empty for allowing it for all users.
  136. # users=
  137.  
  138. [gnome-datetime-panel]
  139. allowed=true
  140. system=true
  141. users=
  142.  
  143. [gnome-color-panel]
  144. allowed=true
  145. system=true
  146. users=
  147.  
  148. [org.gnome.Shell]
  149. allowed=true
  150. system=true
  151. users=
  152.  
  153. [io.elementary.desktop.agent-geoclue2]
  154. allowed=true
  155. system=true
  156. users=
  157.  
  158. [sm.puri.Phosh]
  159. allowed=true
  160. system=true
  161. users=
  162.  
  163. [epiphany]
  164. allowed=true
  165. system=false
  166. users=
  167.  
  168. [firefox]
  169. allowed=true
  170. system=false
  171. users=
  172.  
  173. [lipstick]
  174. allowed=true
  175. system=true
  176. users=
  177.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement