diff options
author | 2016-08-11 13:00:30 -0400 | |
---|---|---|
committer | 2016-08-11 13:00:30 -0400 | |
commit | e8de54d45ea884aa5e6f67e3d75ddb1372741c7f (patch) | |
tree | 9d8e25b51183695289dd7d0909ece729bd847025 /src | |
parent | removed strings profile (diff) | |
download | firejail-e8de54d45ea884aa5e6f67e3d75ddb1372741c7f.tar.gz firejail-e8de54d45ea884aa5e6f67e3d75ddb1372741c7f.tar.zst firejail-e8de54d45ea884aa5e6f67e3d75ddb1372741c7f.zip |
added quiet-by-default config option in /etc/firejail/firejail.config
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/checkcfg.c | 7 | ||||
-rw-r--r-- | src/firejail/env.c | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/firejail/checkcfg.c b/src/firejail/checkcfg.c index 12921e294..3b60dafb6 100644 --- a/src/firejail/checkcfg.c +++ b/src/firejail/checkcfg.c | |||
@@ -220,7 +220,12 @@ int checkcfg(int val) { | |||
220 | if (!xephyr_extra_params) | 220 | if (!xephyr_extra_params) |
221 | errExit("strdup"); | 221 | errExit("strdup"); |
222 | } | 222 | } |
223 | 223 | ||
224 | // quiet by default | ||
225 | else if (strncmp(ptr, "quiet-by-default ", 17) == 0) { | ||
226 | if (strcmp(ptr + 17, "yes") == 0) | ||
227 | arg_quiet = 1; | ||
228 | } | ||
224 | else | 229 | else |
225 | goto errout; | 230 | goto errout; |
226 | 231 | ||
diff --git a/src/firejail/env.c b/src/firejail/env.c index a5b3ccfb3..79d6b81e3 100644 --- a/src/firejail/env.c +++ b/src/firejail/env.c | |||
@@ -133,7 +133,7 @@ void env_defaults(void) { | |||
133 | errExit("setenv"); | 133 | errExit("setenv"); |
134 | 134 | ||
135 | // set the window title | 135 | // set the window title |
136 | printf("\033]0;firejail %s\007\n", cfg.window_title); | 136 | printf("\033]0;firejail %s\007", cfg.window_title);fflush(0); |
137 | } | 137 | } |
138 | 138 | ||
139 | // parse and store the environment setting | 139 | // parse and store the environment setting |