diff options
author | smitsohu <smitsohu@gmail.com> | 2020-08-28 20:11:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-28 20:11:52 +0200 |
commit | 80fddd316359ee03c12e01ea9b34fbf3073584c1 (patch) | |
tree | a3a6914df469573a7bee842fe39d59ad16e71711 | |
parent | private-dev: blacklist stashed syslog socket when it is not needed anymore (diff) | |
download | firejail-80fddd316359ee03c12e01ea9b34fbf3073584c1.tar.gz firejail-80fddd316359ee03c12e01ea9b34fbf3073584c1.tar.zst firejail-80fddd316359ee03c12e01ea9b34fbf3073584c1.zip |
don't attempt to set window title if stdout is not a terminal
closes #3356
-rw-r--r-- | src/firejail/env.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firejail/env.c b/src/firejail/env.c index a8b344544..d74cebb39 100644 --- a/src/firejail/env.c +++ b/src/firejail/env.c | |||
@@ -158,7 +158,7 @@ void env_defaults(void) { | |||
158 | } | 158 | } |
159 | 159 | ||
160 | // set the window title | 160 | // set the window title |
161 | if (!arg_quiet) | 161 | if (!arg_quiet && isatty(STDOUT_FILENO)) |
162 | printf("\033]0;firejail %s\007", cfg.window_title); | 162 | printf("\033]0;firejail %s\007", cfg.window_title); |
163 | 163 | ||
164 | // pass --quiet as an environment variable, in case the command calls further firejailed commands | 164 | // pass --quiet as an environment variable, in case the command calls further firejailed commands |