
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
This library allows you to interact with GeoClue via D-Bus. This allows you to get the physical location of your computer just based on your WiFi connection.
For further reference:
This project is currently only developed and tested on Arch Linux, with plans to port to Ubuntu in the near future. It exists on Arch first because the Ubuntu GeoClue provider is so easy to use, I originally used it from a simple bash script.
Add this line to your application's Gemfile:
gem 'geoclue'
And then execute:
$ bundle
Or install it yourself as:
$ gem install geoclue
Make sure that you have GeoClue installed and running:
$ sudo systemctl status geoclue
If not, it should be available from your distro's package manager:
$ pacman -S geoclue
Run the executable to get your coordinates
$ geoclue
42.12345,-83.12345
Use the --help
flag for more details
$ geoclue --help
Usage: geoclue [option flags]
Running with no options will print comma-separated coordinates.
-h --help print this message
INFORMATION OPTIONS
-f --full fetch all location information
-a --address fetch address information (requires fetching coordinates)
-c --coordinates fetch your coordinates from GeoClue
CONFIGURATION OPTIONS
-t --timeout [int] set the timeout for each operation
-n --no-cache don't use the cache
-d --print-config print out all configuration
--format [fmt] output format of data in named printf format
named options include "tab" and "pipe"
default is "%<key>s: %<val>s\n"
I recommend having a D-Bus debugger tool like d-feet in order to inspect the service API. This tool relies entirely on the org.freedesktop.GeoClue2
system service.
Bug reports and pull requests are welcome on GitHub at https://github.com/shreve/geoclue-ruby.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that geoclue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.