summaryrefslogtreecommitdiff
path: root/eclass/xdg-utils.eclass
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2015-11-23 15:31:54 +0100
committerGilles Dartiguelongue <eva@gentoo.org>2015-11-24 22:56:30 +0100
commit890619e2db138c8cc8b07373af16e3b49b71f975 (patch)
tree40fbefb12c3b1c159af12eb3765e9b624f659881 /eclass/xdg-utils.eclass
parent80c3b2106c7f9c6184ea8a230b328364c8cfc1d0 (diff)
downloadgentoo-890619e2db138c8cc8b07373af16e3b49b71f975.tar.gz
gentoo-890619e2db138c8cc8b07373af16e3b49b71f975.tar.xz
xdg-utils.eclass: use $HOME instead of $T
As in original eclass proposition by Mike, mimic default behavior by using portage HOME which is set to a temporary directory.
Diffstat (limited to 'eclass/xdg-utils.eclass')
-rw-r--r--eclass/xdg-utils.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/xdg-utils.eclass b/eclass/xdg-utils.eclass
index e8dacff2ba9..112cce7795c 100644
--- a/eclass/xdg-utils.eclass
+++ b/eclass/xdg-utils.eclass
@@ -49,9 +49,9 @@ esac
# Clean up environment for clean builds.
xdg_environment_reset() {
# Prepare XDG base directories
- export XDG_DATA_HOME="${T}/.local/share"
- export XDG_CONFIG_HOME="${T}/.config"
- export XDG_CACHE_HOME="${T}/.cache"
+ export XDG_DATA_HOME="${HOME}/.local/share"
+ export XDG_CONFIG_HOME="${HOME}/.config"
+ export XDG_CACHE_HOME="${HOME}/.cache"
export XDG_RUNTIME_DIR="${T}/run"
mkdir -p "${XDG_DATA_HOME}" "${XDG_CONFIG_HOME}" "${XDG_CACHE_HOME}" \
"${XDG_RUNTIME_DIR}" || die