public static Path getCacheHome() {
    return getCacheHome(System.getProperties(), System.getenv());
  }
Obtains OS-specific directories based on the XDG Base Directory Specification.

<p>Specifically, from the specification:

<ul>
  <li>These directories are defined by the environment variables {@code $XDG_CACHE_HOME} and
      {@code $XDG_CONFIG_HOME}.
  <li>If {@code $XDG_CACHE_HOME} / {@code $XDG_CONFIG_HOME} is either not set or empty, a
      platform-specific equivalent of {@code $HOME/.cache} / {@code $HOME/.config} should be
      used.
</ul>

@see <a
    href="https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html">https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html</a>
jib-core/src/main/java/com/google/cloud/tools/jib/filesystem/XdgDirectories.java