The XDG Base Directory specification [1] demands that there should be a "single base directory relative to which user-specific non-essential (cached) data should be written". Light currently makes use of such a cache directory, but hardcodes the default "$HOME/.cache". In order to enable users to specify a custom cache directory, respect this convention and use the "$XDG_CACHE_HOME" environment variable if it is set. If it is not set, fall back to "$HOME/.cache". [1] https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
|
|
||
303 |
|
303 |
|
304 |
|
304 |
|
305 |
|
305 |
|
306 |
|
|
|
|
306 |
|
|
307 |
|
307 |
|
308 |
|
|
|
309 |
|
|
|
|
308 |
|
|
|
309 |
|
|
|
310 |
|
|
|
311 |
|
|
|
312 |
|
|
|
313 |
|
|
|
314 |
|
|
310 |
|
315 |
|
311 |
|
316 |
|
312 |
|
317 |
|