aboutsummaryrefslogtreecommitdiffstats
path: root/c_exec.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-18 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-18 20:20:20 +0100
commitd638f631f4f03a7b359a4c12d7d679602c8d733a (patch)
tree0e76ecd2c076a7e0ae0a49ea53ada74f5f536ef9 /c_exec.go
parentsample (diff)
downloadhardflip-d638f631f4f03a7b359a4c12d7d679602c8d733a.tar.gz
hardflip-d638f631f4f03a7b359a4c12d7d679602c8d733a.tar.bz2
hardflip-d638f631f4f03a7b359a4c12d7d679602c8d733a.tar.xz
hardflip-d638f631f4f03a7b359a4c12d7d679602c8d733a.tar.zst
hardflip-d638f631f4f03a7b359a4c12d7d679602c8d733a.zip
config
Diffstat (limited to 'c_exec.go')
-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)