Ian Johnson 0a70455095 Fix handling of empty XDG environment variables
Closes #21132

According to the XDG Base Directory specification
(https://specifications.freedesktop.org/basedir-spec/latest/#variables),
empty values for these environment variables should be treated the same
as if they are unset. Specifically, for the instances changed in this
commit,

> $XDG_DATA_HOME defines the base directory relative to which
> user-specific data files should be stored. If $XDG_DATA_HOME is either
> not set **or empty**, a default equal to $HOME/.local/share should be
> used.

and

> $XDG_CACHE_HOME defines the base directory relative to which
> user-specific non-essential data files should be stored. If
> $XDG_CACHE_HOME is either not set **or empty**, a default equal to
> $HOME/.cache should be used.

(emphasis mine)

In addition to the case mentioned in the linked issue, all other uses of
XDG environment variables were corrected.
2024-08-19 23:30:14 -07:00
..
2024-07-09 14:25:42 -07:00
2024-07-09 14:25:42 -07:00
2024-08-07 00:48:32 -07:00
2024-07-25 18:52:20 -07:00
2024-03-21 14:11:46 -07:00
2024-02-23 02:37:11 -07:00
2024-07-23 11:43:12 -07:00
2024-07-09 14:25:42 -07:00
2024-08-15 22:05:53 -07:00
2024-07-19 00:30:32 -07:00
2024-07-09 14:25:42 -07:00
2024-07-02 16:31:15 +02:00
2024-03-10 18:13:30 -07:00
2024-03-21 14:11:46 -07:00
2024-07-09 14:25:42 -07:00
2024-08-12 08:59:49 +02:00
2024-03-10 18:13:30 -07:00
2024-07-19 00:30:32 -07:00
2024-05-26 16:13:54 -04:00
2024-03-21 14:11:46 -07:00
2024-07-20 01:06:29 -07:00
2024-02-05 11:55:14 +03:30
2024-07-19 00:30:32 -07:00
2024-08-07 00:48:32 -07:00
2024-07-31 16:57:42 -07:00
2024-07-28 21:34:14 -07:00
2024-07-19 00:30:32 -07:00
2024-04-15 15:24:30 -07:00
2024-07-19 00:30:32 -07:00
2024-08-01 22:11:35 -07:00
2024-07-09 14:25:42 -07:00
2024-08-15 22:05:53 -07:00
2024-07-25 18:52:20 -07:00
2024-07-19 00:30:32 -07:00
2024-07-31 16:57:42 -07:00
2024-06-17 16:12:19 -04:00