Executable files often have no extension, so MIME detection doesn't work. We can make an educated guess that octet-stream files with execute bit set are executables.
- Group Reviewers
- R36:e5dea0cc02b7: Display "executable" in info panel instead of "unknown"
+1 for the idea.
Please use mimeType.isDefault() instead.
Instead of using a custom string (which needs to be translated from scratch), we could get the mimetype using db.mimeTypeForName(QStringLiteral("application/x-executable")) and then get the comment() of this mimetype.