run: use x-terminal-emulator in [terminal]

The environment variables TERM and COLORTERM do not contain an
executable names.
This commit is contained in:
Christian Helmuth 2020-04-06 15:17:50 +02:00
parent 6dfd268ef1
commit bb34aafa45
1 changed files with 1 additions and 4 deletions

View File

@ -819,10 +819,7 @@ proc exit {{status 0}} {
# #
proc terminal { } { proc terminal { } {
global env global env
if {[info exists env(COLORTERM)]} { return x-terminal-emulator
return $env(COLORTERM)
}
return $env(TERM)
} }