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-12-19 00:32:30 (GMT)
committer Michael Stone <michael@laptop.org>2010-12-19 00:43:53 (GMT)
commit9b9131cec86312818dc39b19206915c9d4d20b21 (patch)
tree38ea96b77709405d5b2347ece77cd0a5e088f885
parent92180b6cae21f5dbca37bcac80d7c2eaa8bdaf9c (diff)
rainbow-{easy,resume}: whitelist TERM
Without TERM, nano refuses to start in the shell. Thanks to Bobby Powers <bpowers@forio.com> for suggesting this change.
-rwxr-xr-xbin/rainbow-easy2
-rwxr-xr-xbin/rainbow-resume2
2 files changed, 4 insertions, 0 deletions
diff --git a/bin/rainbow-easy b/bin/rainbow-easy
index 85733c5..e97b254 100755
--- a/bin/rainbow-easy
+++ b/bin/rainbow-easy
@@ -24,6 +24,7 @@ def main():
env = EnvMerge()
path = env.parent_envvar("PATH") or ""
+ term = env.parent_envvar("TERM") or ""
display = env.prefer_our_envvar("DISPLAY") or ""
xauthority = env.prefer_our_envvar("XAUTHORITY") or ""
@@ -36,6 +37,7 @@ def main():
"-E", "DISPLAY="+display,
"-E", "XAUTHORITY="+xauthority,
"-E", "PATH="+path,
+ "-E", "TERM="+term,
"-a", "/usr/bin/rainbow-xify",
"-o", "audio",
"-o", "network",
diff --git a/bin/rainbow-resume b/bin/rainbow-resume
index 75b2f22..b787990 100755
--- a/bin/rainbow-resume
+++ b/bin/rainbow-resume
@@ -24,6 +24,7 @@ def main():
env = EnvMerge()
path = env.parent_envvar("PATH") or ""
+ term = env.parent_envvar("TERM") or ""
display = env.prefer_our_envvar("DISPLAY") or ""
xauthority = env.prefer_our_envvar("XAUTHORITY") or ""
@@ -36,6 +37,7 @@ def main():
"-E", "DISPLAY="+display,
"-E", "XAUTHORITY="+xauthority,
"-E", "PATH="+path,
+ "-E", "TERM="+term,
"-a", "/usr/bin/rainbow-xify",
"-o", "audio",
"-o", "network",