[Tracker][Add-On API] process_refs gets wrong directory entry_ref
|Reported by:||ahwayakchih||Owned by:||jscipione|
|Has a Patch:||no||Platform:||All|
I just tried nightly (after a looong time) inside virtualbox to try to rebuild my tiny apps on Haiku and noticed different behaviour than the one described in BeBook (https://www.haiku-os.org/legacy-docs/bebook/TheTracker_AddOnProtocol.html#process_refs).
I may be doing something wrong, but it looks like the Tracker passes wrong entry_ref to the add-on application. Instead of passing entry_ref to the directory, i'm getting entry_ref to the selected file.
I managed to workaround that by using BEntry.IsFile() and getting parent directory before continuing, but that was not needed before.
Was that intentionally changed without changing header files (first parameter to
process_refs is called
directory in header files)?