Fix the code to open gzipped files, to allow opening them when app
is running and not only as a command line param.