GNOME Bugzilla – Bug 626346
Add API to monitor timezone changes
Last modified: 2011-04-08 14:30:15 UTC
In the clock applet, we need to monitor for changes of the current system timezone. I can't completely remove the code in the clock applet if this feature is not present in some way with the new g-s-d code. The obvious issue there is that the g-s-d polkit helper is not always running, so it can't send such a signal. But I guess we could have a g-s-d plugin that would handle that part.
*** Bug 541414 has been marked as a duplicate of this bug. ***
g_file_monitor ("/etc/localtime") not good enough?
After brainstorming with David Zeuthen, we came to the conclusion that it would be much easier to have this in a single place, but that using a D-Bus service for this was overkill. Adding a tiny object in gnome-desktop that could be shared by the clock applet (in the shell and panel) and the control-center's date & time panel would be the easiest.
Created attachment 174339 [details] [review] Add object to monitor system timezone files
Removed the timezone monitoring from gnome-settings-daemon's gsd mechanism. commit 595958f343ec630184b8f96e1bdf3838c6370f50 Author: Bastien Nocera <hadess@hadess.net> Date: Wed Dec 8 17:47:34 2010 +0000 datetime: Remove TZ monitoring This can be done in user-space, and seeing as this is a mechanism, we wouldn't be running all the time anyway. See https://bugzilla.gnome.org/show_bug.cgi?id=626346
Apps can now do this themselves using GTimeZoneMonitor, closing.