Given the following C++ code ‘mini.cpp’: and the compiler command: the result of is How do I get ‘application/x-application’ as a mime type? I’m using gcc 6.2.0 on Kubuntu. Answer gcc doesn’t set the mime type. mimetype guesses the appropriate mime type based on the contents of the file. For ELF files (most compiled binaries and shared libraries), the header