ImHex icon indicating copy to clipboard operation
ImHex copied to clipboard

[Bug] Custom magic files don't work.

Open ershov opened this issue 1 year ago • 1 comments

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?

  1. Create a simple magic file like this:
0     lelong  120897   Magic
!:mime  application/wt
!:ext   wt
  1. Check that it works:
$ file -m wt --mime-type wtfile.wt
wtfile.wt: application/wt
  1. Put this line into the pattern: #pragma MIME application/wt
  2. Put the magic file to the application path Library/Application Support/imhex/magic.
  3. 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.

ershov avatar Aug 07 '23 12:08 ershov

After I did this:

$ /Applications/imhex.app/Contents/MacOS/imhex --magic mime <FILE>

(returning the correct type), the pattern started to load automatically.

ershov avatar Aug 14 '23 05:08 ershov

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.

github-actions[bot] avatar Aug 03 '24 16:08 github-actions[bot]