From d638f631f4f03a7b359a4c12d7d679602c8d733a Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 18 Jan 2024 20:20:20 +0100 Subject: config --- c_exec.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'c_exec.go') 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) -- cgit v1.2.3