After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 626346 - Add API to monitor timezone changes
Add API to monitor timezone changes
Status: RESOLVED WONTFIX
Product: gnome-desktop
Classification: Core
Component: libgnome-desktop
2.31.x
Other Linux
: Normal normal
: ---
Assigned To: Desktop Maintainers
Desktop Maintainers
: 541414 (view as bug list)
Depends on: 644771
Blocks:
 
 
Reported: 2010-08-08 02:27 UTC by Vincent Untz
Modified: 2011-04-08 14:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add object to monitor system timezone files (8.92 KB, patch)
2010-11-12 16:53 UTC, Bastien Nocera
none Details | Review

Description Vincent Untz 2010-08-08 02:27:25 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.
Comment 1 Vincent Untz 2010-08-10 09:50:40 UTC
*** Bug 541414 has been marked as a duplicate of this bug. ***
Comment 2 Bastien Nocera 2010-10-13 18:21:03 UTC
g_file_monitor ("/etc/localtime") not good enough?
Comment 3 Bastien Nocera 2010-11-12 14:13:28 UTC
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.
Comment 4 Bastien Nocera 2010-11-12 16:53:32 UTC
Created attachment 174339 [details] [review]
Add object to monitor system timezone files
Comment 5 Bastien Nocera 2010-12-08 17:51:23 UTC
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
Comment 6 Bastien Nocera 2011-04-08 14:30:15 UTC
Apps can now do this themselves using GTimeZoneMonitor, closing.