diff --git a/src/firejail/main.c b/src/firejail/main.c index 27ae68eb0fe..d596a57abe2 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c @@ -1110,6 +1110,13 @@ int main(int argc, char **argv, char **envp) { if (check_arg(argc, argv, "--quiet", 1) || (env_quiet && strcmp(env_quiet, "yes") == 0)) arg_quiet = 1; + // process --debug + const char *env_debug = env_get("FIREJAIL_DEBUG"); + if (check_arg(argc, argv, "--debug", 1) || (env_debug && strcmp(env_debug, "yes") == 0)) { + arg_debug = 1; + arg_quiet = 0; + } + // check if the user is allowed to use firejail init_cfg(argc, argv);