summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2015-11-21 11:45:34 +0100
committerGilles Dartiguelongue <eva@gentoo.org>2015-11-24 22:56:20 +0100
commit82d8b7dc847de63c3e8636be59dc053c1dafac4b (patch)
treedf12db179b31fd2cb009f7a75b10bacd984fd75e /eclass/xdg-utils.eclass
parentgstreamer.eclass: use xdg_environment_reset (diff)
downloadgentoo-82d8b7dc847de63c3e8636be59dc053c1dafac4b.tar.gz
gentoo-82d8b7dc847de63c3e8636be59dc053c1dafac4b.tar.bz2
gentoo-82d8b7dc847de63c3e8636be59dc053c1dafac4b.zip
xdg-utils.eclass: also unset DBUS_SESSION_BUS_ADDRESS
An often needed hack in ebuilds to avoid tests using user's bus. https://bugs.gentoo.org/show_bug.cgi?id=515196
Diffstat (limited to 'eclass/xdg-utils.eclass')
-rw-r--r--eclass/xdg-utils.eclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/eclass/xdg-utils.eclass b/eclass/xdg-utils.eclass
index 523f985a4601..1f97623cbfd5 100644
--- a/eclass/xdg-utils.eclass
+++ b/eclass/xdg-utils.eclass
@@ -58,6 +58,8 @@ xdg_environment_reset() {
# This directory needs to be owned by the user, and chmod 0700
# http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
chmod 0700 "${XDG_RUNTIME_DIR}"
+
+ unset DBUS_SESSION_BUS_ADDRESS
}
# @FUNCTION: xdg_desktopfiles_savelist