aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/env.c')
-rw-r--r--src/firejail/env.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/firejail/env.c b/src/firejail/env.c
index 213bd01d5..cccab966d 100644
--- a/src/firejail/env.c
+++ b/src/firejail/env.c
@@ -114,9 +114,13 @@ void env_defaults(void) {
114 //export PS1='\[\e[1;32m\][\u@\h \W]\$\[\e[0m\] ' 114 //export PS1='\[\e[1;32m\][\u@\h \W]\$\[\e[0m\] '
115 if (setenv("PROMPT_COMMAND", "export PS1=\"\\[\\e[1;32m\\][\\u@\\h \\W]\\$\\[\\e[0m\\] \"", 1) < 0) 115 if (setenv("PROMPT_COMMAND", "export PS1=\"\\[\\e[1;32m\\][\\u@\\h \\W]\\$\\[\\e[0m\\] \"", 1) < 0)
116 errExit("setenv"); 116 errExit("setenv");
117 117
118 // if this is a terminal, set window title 118 // build the window title and set it
119 printf("\033]0;Firejail\007\n"); 119 char *title;
120 if (asprintf(&title, "\033]0;firejail %s\007\n", cfg.window_title) == -1)
121 errExit("asprintf");
122 printf("%s", title);
123 free(title);
120} 124}
121 125
122// parse and store the environment setting 126// parse and store the environment setting