Skip to content

Add KDED module for adjusting the system time zone based on location

Kai Uwe Broulik requested to merge work/kbroulik/geotimezoned into master

We don't need accurate location data, so it just talks to the KDE geoip endpoint directly and adjusts the timezone accordingly.

It does that only on a network with full connectivity (ie. not behind a portal), that is not metered and not connected to a VPN (to avoid using the VPN gateway's timezone inadvertendly) and only a maximum of once every hour.

The module is off-by-default to not do unsolicited network requests and a UI to enable it (in date time KCM and/or digital clock applet settings) is tbd.

@vkrause @sitter @leinir

Fixes people running around at Akademy with the wrong time on their laptops.

Since there is no UI yet, after installing, load the module manually:

$ qdbus org.kde.kded6 /kded org.kde.kded6.loadModule geotimezoned

or enable autoloading and restart KDED:

$ qdbus org.kde.kded6 /kded org.kde.kded6.setModuleAutoloading geotimezoned true

There’s a logging category org.kde.plasma.geotimezoned you can enable for more verbose output.

  • TODO a setting in the UI to enable it
Edited by Kai Uwe Broulik

Merge request reports