[Patch] Make file_rawtherapee use the Windows Registry to find RawTherapee
For context see https://github.com/Beep6581/RawTherapee/issues/4783
In short: The file_rawtherapee plugin was only able to find RawTherapee via environment variables until now. Newer versions of RT will probably set a registry value that will make it easier for us to find it.
I attached a patch that should use that registry value if no environment variable RAWTHERAPEE_EXECUTABLE
was found.
There are two caveats though:
1. I was not able to compile and test it since I still have dependency issues. So it would be nice if someone who is able to compile for windows right now could test it.
- I had to edit
file_raw_get_executable_path()
in order to be able to switch between searching in HKLM and HKCU. I don't really like the name of the switch parameter though. So if someone has a better idea - feel free to change it :)
0001-Make-file_rawtherapee-use-the-registry-value-that-is.patch
Edited by Simon Müller