diff options
author | Emmanuel Rosa <emmanuelrosa@protonmail.com> | 2019-11-17 12:05:41 +0700 |
---|---|---|
committer | jao <jao@gnu.org> | 2019-11-17 19:17:08 +0000 |
commit | c175588099632c474f988fb4a61ab51ad2523975 (patch) | |
tree | a4fd175256cbf6a7e3df3d208e387c3fd3b2b7a7 /doc/web/makefile | |
parent | 6150993d0528b2a081b3d7e0b7e76732a611625d (diff) | |
download | xmobar-c175588099632c474f988fb4a61ab51ad2523975.tar.gz xmobar-c175588099632c474f988fb4a61ab51ad2523975.tar.bz2 |
DateZone: get timezone series from TZDIR
The DateZone plugin calls `getTimeZoneSeriesFromOlsonFile` using the
hard-coded path /usr/share/zoneinfo. While that may work just fine on
most Linux distros, it does not work on NixOS since that directory is
always locates somewhere under /nix/store.
Based on mild research, it seems the environment variable TZDIR is
commonly set to the absolute path to `zoneinfo` (but without a trailing
slash).
This change modifies the DateZone plugin to first try getting
the zoneinfo path from the TZDIR environment variable, falling back
to the hard-coded path /usr/share/zoneinfo
Diffstat (limited to 'doc/web/makefile')
0 files changed, 0 insertions, 0 deletions