diff options
author | Dudemanguy <random342@airmail.cc> | 2023-05-02 19:42:23 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-05-09 20:37:17 +0000 |
commit | 4502522a7aee093c923e79a65e4684ea2634af30 (patch) | |
tree | d7855be2c4cfb6a16edc784da0e6f3dad29ee667 /osdep/path.h | |
parent | 7c4c9bc86f55f4d1224814fbeafdee8f1c3c3108 (diff) | |
download | mpv-4502522a7aee093c923e79a65e4684ea2634af30.tar.bz2 mpv-4502522a7aee093c923e79a65e4684ea2634af30.tar.xz |
player: use XDG_CACHE_HOME by default
This adds cache as a possible path for mpv to internally pick
(~/.cache/mpv for non-darwin unix-like systems, the usual config
directory for everyone else). For gpu shader cache and icc cache,
controlling whether or not to write such files is done with the new
--gpu-shader-cache and --icc-cache options respectively. Additionally,
--cache-on-disk no longer requires explicitly setting the --cache-dir
option. The old options, --cache-dir, --gpu-shader-cache-dir, and
--icc-cache-dir simply set an override for the directory to save cache
files. If unset, then the cache is saved in XDG_CACHE_HOME.
Diffstat (limited to 'osdep/path.h')
-rw-r--r-- | osdep/path.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/osdep/path.h b/osdep/path.h index d678b12072..2c00ea56eb 100644 --- a/osdep/path.h +++ b/osdep/path.h @@ -15,6 +15,7 @@ // implemented on every platform. Unlike some other type values that are // platform specific (like "osxbundle"), the value of "home" is returned // instead if these types are not explicitly defined. +// "cache" the native mpv-specific user cache dir // "state" the native mpv-specific user state dir // // It is allowed to return a static string, so the caller must set talloc_ctx |