Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stebalien/localtime
A daemon for keeping the system timezone up-to-date based on the current location
https://github.com/stebalien/localtime
Last synced: 16 days ago
JSON representation
A daemon for keeping the system timezone up-to-date based on the current location
- Host: GitHub
- URL: https://github.com/stebalien/localtime
- Owner: Stebalien
- License: gpl-3.0
- Created: 2016-01-11T21:06:56.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-02-15T04:34:20.000Z (9 months ago)
- Last Synced: 2024-10-09T23:08:52.894Z (27 days ago)
- Language: Go
- Homepage: http://stebalien.com/projects/localtime/
- Size: 1.69 MB
- Stars: 22
- Watchers: 4
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Localtime
A daemon for keeping the system timezone up-to-date based on the current location.
## Configuring GeoClue
Unfortunately, GeoClue is stubbornly a Gnome and desktop-centric service. There's no way (literally)
to use it from a system service without manual intervention, unless you can convince them to add
your app to a whitelist. You can:1. Configure a geoclue agent (e.g., the demo agent), and configure the demo agent to allow
`localtimed`. I've tried having localtime autostart this if it can't find an agent running, but
GeoClue insisted that there was no agent running anyways.
2. Disable geoclue agents by clearing the agent whitelist in `/etc/geoclue/geoclue.conf`. This is by
far the simplest approach, but it will allow arbitrary apps to get your location.## Install
If possible, use your package manager:
* [Arch Linux (AUR)](https://aur.archlinux.org/packages/localtime-git)
Otherwise, follow the instructions below.
### Manual Install
$ make
$ sudo make install## Enable and start
$ sudo systemctl enable --now localtime.service
## Dependencies
### Runtime
* geoclue2
* systemd >= 235 (for full dynamic user support)
* dbus
* polkit (to run as a non-root user)### Build
* go
* make
* m4