mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-04 07:15:29 -04:00
slave: unset TERM_PROGRAM{,_VERSION}
Foot’s policy is to not set environment variables that identifies it (except the well-known and established `TERM` variable). We encourage applications to use terminfo to determine capabilities, or terminal queries, when available. Or, at least use terminal queries to detect the terminal and its version. Setting environment variables is a bad idea since they are inherited by all applications started by the terminal (which is the whole point). But, this includes other terminal emulators, making it very possible a terminal emulator gets mis-detected just because it was started from another terminal. Since there are a couple of terminal emulators that _do_ set TERM_PROGRAM and TERM_PROGRAM_VERSION, unset these environment variables to avoid being misdetected. Closes #1349
This commit is contained in:
parent
d2f81443f1
commit
a2f765b72a
5 changed files with 4 additions and 27 deletions
|
|
@ -93,7 +93,7 @@
|
|||
* “Report DA2” terminfo entries (`RV`/`rv`).
|
||||
* `XF` terminfo capability (focus in/out events available).
|
||||
* `$TERM_PROGRAM` and `$TERM_PROGRAM_VERSION` environment variables
|
||||
set in the slave process.
|
||||
unset in the slave process.
|
||||
|
||||
[1136]: https://codeberg.org/dnkl/foot/issues/1136
|
||||
[1225]: https://codeberg.org/dnkl/foot/issues/1225
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue