ImHex
ImHex copied to clipboard
[Bug] Custom magic files don't work.
Operating System
MacOS
What's the issue you encountered?
I created a custom text and binary mgc files but ImHex doesn't pick them up.
How can the issue be reproduced?
- Create a simple magic file like this:
0 lelong 120897 Magic
!:mime application/wt
!:ext wt
- Check that it works:
$ file -m wt --mime-type wtfile.wt
wtfile.wt: application/wt
- Put this line into the pattern:
#pragma MIME application/wt
- Put the magic file to the application path
Library/Application Support/imhex/magic
. - Run ImHex and open the file.
Imhex doesn't automatically load the pattern.
ImHex Version
1.30.1
ImHex Build Type
- [X] Nightly or built from sources
Installation type
DMG
Additional context?
I also tried to compile the magic file with file -C
, it didn't work too.
After I did this:
$ /Applications/imhex.app/Contents/MacOS/imhex --magic mime <FILE>
(returning the correct type), the pattern started to load automatically.
This issue is marked stale as it has been open for 11 months without activity. Please try the latest ImHex version. (Avaiable here: https://imhex.download/ for release and https://imhex.download/#nightly for development version) If the issue persists on the latest version, please make a comment on this issue again
Without response, this issue will be closed in one month.