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 753602 - inotify: Change monitoring to timezone updates does not work
inotify: Change monitoring to timezone updates does not work
Status: RESOLVED DUPLICATE of bug 751358
Product: glib
Classification: Platform
Component: gio
2.45.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2015-08-13 22:53 UTC by Martin Andersson
Modified: 2015-08-19 05:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed fix (1.22 KB, patch)
2015-08-13 22:53 UTC, Martin Andersson
none Details | Review

Description Martin Andersson 2015-08-13 22:53:58 UTC
Created attachment 309236 [details] [review]
Proposed fix

The file /etc/localtime is watched in gnome-desktop/libgnome-desktop/gnome-wall-clock.c so that changes to the timezone can be detected. This monitoring does no longer work when changing the timezone via Settings -> Date & Time -> TimeZone

I located the issue to inotify-path.c:549
    if (event->pair && event->pair->wd != event->wd)
If i change that line to
    if (event->pair)
the monitoring works again.

I don't if this is the proper fix, but it at least works for me.
Comment 1 Matthias Clasen 2015-08-19 05:01:23 UTC

*** This bug has been marked as a duplicate of bug 751358 ***