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.
Details
Details
- Reviewers
elvisangelaccio - Group Reviewers
Ark - Commits
- R36:e5dea0cc02b7: Display "executable" in info panel instead of "unknown"
Diff Detail
Diff Detail
- Repository
- R36 Ark
- Branch
- exec-info
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 17462 Build 17480: arc lint + arc unit
Comment Actions
+1 for the idea.
part/infopanel.cpp | ||
---|---|---|
183–187 | Please use mimeType.isDefault() instead. | |
184 | 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. |