Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Stone <michael@laptop.org>2010-09-24 00:44:53 (GMT)
committer Michael Stone <michael@laptop.org>2010-12-19 00:03:19 (GMT)
commitf63a4641a7749fba48e44ec7cf1c347a889d372a (patch)
tree1d85e12d9cdeb5fd81792c575d8c99cb676c52a4
parent0c730309b939491d4104dfc3cf67662e2fceb7b0 (diff)
slo#2199: Pass rainbow-easy's parent's PATH through to its child.ms/slo2199
-rwxr-xr-xbin/rainbow-easy3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/rainbow-easy b/bin/rainbow-easy
index 061f5d7..cdcef8d 100755
--- a/bin/rainbow-easy
+++ b/bin/rainbow-easy
@@ -23,6 +23,8 @@ for kv in env:
EOF
}
+PARENT_PATH=`read_parent_envvar PATH`
+
if [ -z "$DISPLAY" ]; then
DISPLAY=`read_parent_envvar DISPLAY`
fi
@@ -35,6 +37,7 @@ exec /usr/sbin/rainbow-run \
-i "${SUDO_USER}_${ID}" \
-E "DISPLAY=$DISPLAY" \
-E "XAUTHORITY=${XAUTHORITY:-${HOME}/.Xauthority}" \
+ -E "PATH=${PARENT_PATH}" \
-a /usr/bin/rainbow-xify \
-o audio \
-o network \