[haiku-development] Re: BPathFinder and local add-ons/libs directories

  • From: Jessica Hamilton <jessica.l.hamilton@xxxxxxxxx>
  • To: "haiku-development@xxxxxxxxxxxxx" <haiku-development@xxxxxxxxxxxxx>
  • Date: Sun, 18 Jan 2015 11:38:20 +1300

On 18 January 2015 at 02:49, Adrien Destugues <pulkomandy@xxxxxxxxx> wrote:
> Hi,
>
> I am trying to use BPathFinder to iterate over available add-ons for an
> application. It works for the system-wide directories, but doesn't
> include the app-local ones (%A/add-ons). There is a similar behaviour
> for libraries.
>
> Should these be added to the paths BPathFinder returns (possibly with a
> specific flag to enable them)? This would be good for symetry with
> load_add_on, which does search there when given a relative path. Or
> should we leave this up to apps (getting the application path from
> BApplication, etc)?

I'm in favour of improving the existing implementation to include
these additional locations.

Other related posts: