ImHex
ImHex copied to clipboard
[Bug] Symlink in themes folder prevents built-in plugins from loading
Operating System
Windows
What's the issue you encountered?
I created a symlink to a theme file in the themes folder I tried to open ImHex It broke
How can the issue be reproduced?
- Export a new theme using the Theme Manager
- Create a symlink to it with
mklink C:\Users\%USERNAME%\AppData\Local\imhex\themes\theme.json .\theme.json
- (Re)Open ImHex
ImHex Version
ImHex Build Type
- [X] Nightly or built from sources
Installation type
ninja -j8 install, why is this field required when building from sources
Additional context?
No code changes compared to commit
Hey, could you send us the log file ?
20231115_181044.log Presumably, ImHex tries to open it as a json file, while in reality it's a symlink which it should attempt to follow to the actual file
As a quick sidenote, opening the symlink in ImHex caused a new file to be made
The issue is quite simply, ImHex never tries to follow symlinks. Honestly I'm also not sure if it actually should since symlinks can introduce a whole new kind of errors we and users will have to deal with if they're used improperly