What does the expression 'Environment = "TERM = dumb"' mean in the [Service] section of the systemd service file? It is particularly interesting that the assignment makes "TERM = dumb".
1 answer
Environment="TERM=dumb"
sets the TERM
environment variable to dumb
when the script is run.
“Why is it done here ?” - it is better to ask the author, I can put forward a few guesses:
- because
powertop
is a console utility that uses curses, so the author was probably worried that she could format her output or try to capture the terminal depending on theTERM
value and therefore assigned an invalid value to it. - or maybe
powertop
simply refused to work without installingTERM
. - or the author simply thoughtlessly copied this line from another module, and here it doesn’t affect anything and is not needed at all.
In any case, it is possible that this line is not absolutely necessary ...
|
TERM
environment variable todumb
, obviously ... "why?" - it’s better to ask the person who wrote the module or at least provide the context ... - Fat-Zer