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-09-24 02:10:55 (GMT)
commit20ee511854dfc0b1ef76b6826648ffbc0148262d (patch)
tree197e04f453d3f60c78a2820c99b09652ebb2c2c3
parent532d4f56723afc2993a7b4ab6f863461225b22d6 (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 \