summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorEmmanuel Rosa <emmanuelrosa@protonmail.com>2019-11-17 12:05:41 +0700
committerjao <jao@gnu.org>2019-11-17 19:17:08 +0000
commitc175588099632c474f988fb4a61ab51ad2523975 (patch)
treea4fd175256cbf6a7e3df3d208e387c3fd3b2b7a7 /test
parent6150993d0528b2a081b3d7e0b7e76732a611625d (diff)
downloadxmobar-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 'test')
0 files changed, 0 insertions, 0 deletions