This program implements timedated1 interface from systemd that is required by GNOME Control Center and can be used by KDE Settings
Go to file
2024-06-09 12:17:27 +02:00
.gitea/workflows Add a build job 2024-05-17 10:26:09 +02:00
data Add a stub method to query the time zones 2024-05-24 23:01:16 +02:00
src Use giomm DBus interface 2024-06-09 12:17:27 +02:00
.gitignore Add a gitignore file 2024-04-16 15:52:17 +02:00
CMakeLists.txt Split the data and sources 2024-05-21 18:58:15 +02:00
COPYING Add autotools 2014-06-25 21:37:20 +02:00
README.md Handle ListTimezones errors 2024-06-02 14:57:09 +02:00

slack-timedate

This program implements timedated1 interface from systemd what is required by GNOME Control Center for now. slack-timedate's purpose is to make it possible to enjoy full GNOME functionality on Slackware Linux which doesn't use systemd as its init-system.

Installation

cmake -B build \
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DCMAKE_INSTALL_SYSCONFDIR=/etc
make -C build
make -C build install

The installation will create a file build/install_manifest.txt, which contains a list of all files installed in the system. To uninstall the application those should be removed, for example by doing:

xargs rm < build/install_manifest.txt

Debugging

Firstly an application is required that changes the time settings over the timedate1 service. It can be gnome-control-center or kcmshell5 kcm_clock for KDE.

Then running dbus-monitor --system as root can be used to see the communication between the control center and this service.

Messages to the D-Bus service can also be sent with dbus-send. For example to get the list of time zones:

dbus-send --system --print-reply --type=method_call \
  --dest=org.freedesktop.timedate1 \
  /org/freedesktop/timedate1 org.freedesktop.timedate1.ListTimezones

To get a value of a property:

dbus-send --system --print-reply \
  --dest=org.freedesktop.timedate1 \
  /org/freedesktop/timedate1 org.freedesktop.DBus.Properties.Get \
  string:org.freedesktop.timedate1 string:NTP

Dependencies

  • glib
  • dbus