f597a0a11c
This ensures that we do not create a new GTimeZone with g_time_zone_new_local() repeatedly. Currently, that will cause GTimeZone to open(), mmap() and parse /etc/localtime while on the main thread. We already track timezone changes, so we can cache this value and reuse it if we: 1) Clear the cache when timezone changes 2) Use the only GDateTime API available to us here, which means we imply the current time. But this is how environment.js uses the date and time anyway, so no loss. We maintain the old form for plugin compatibility. https://gitlab.gnome.org/GNOME/gnome-shell/issues/2279 |
||
---|---|---|
.. | ||
extensionPrefs | ||
gdm | ||
misc | ||
perf | ||
portalHelper | ||
ui | ||
js-resources.gresource.xml | ||
meson.build |