aboutsummaryrefslogtreecommitdiffstats
path: root/c_exec.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--c_exec.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/c_exec.go b/c_exec.go
index da97346..407c0f7 100644
--- a/c_exec.go
+++ b/c_exec.go
@@ -147,6 +147,9 @@ func c_format_cmd(host *HostNode, term string) {
c_die("type not found", nil)
}
if len(term) > 0 {
+ if term == "$TERMINAL" {
+ term = os.Getenv("TERMINAL")
+ }
cmd_fmt = append([]string{term, "-e"}, cmd_fmt...)
}
c_exec_cmd(cmd_fmt)