diff options
author | 2023-05-11 21:02:46 -0300 | |
---|---|---|
committer | 2023-05-14 16:58:38 -0300 | |
commit | f019f0ec3fd807676855c99f11dd2fcebfc1da27 (patch) | |
tree | 33c496e8d8cf5c05946217f999031b18e9b6a312 /src/fnetfilter | |
parent | Move usage text into usage_str var (diff) | |
download | firejail-f019f0ec3.tar.gz firejail-f019f0ec3.tar.zst firejail-f019f0ec3.zip |
Print version on startup for firejail/firecfg
It is not too uncommon for the firejail version to be missing when
issues are reported; this commit makes it more likely that any posted
logs will contain the program version.
Do so just for firejail and firecfg for now because they are the most
common user-facing programs.
Print the version after argument parsing, in order to avoid printing the
program version more than once and to avoid interfering with commands
that generate machine-readable output (like `firejail --list` and
`firecfg --list`). Also, only print it after all profiles have been
loaded, because a profile may contain `quiet`.
Note: This does not cover the case where the program exits before the
end of argument/profile parsing (such as when an error occurs).
Diffstat (limited to 'src/fnetfilter')
0 files changed, 0 insertions, 0 deletions