I tried to use QTemporaryDir but failed due to reasons I mentioned before. Next I added tests to check gpg log in KgpImport tests. Is there a reason for KGpgImport::getImportMessage? I mistook it for gpg log itself first.