[haiku-development] Re: RFC : using attributes to store shortcuts for Tracker add-ons

  • From: Philippe Saint-Pierre <stpere@xxxxxxxxx>
  • To: haiku-development <haiku-development@xxxxxxxxxxxxx>
  • Date: Fri, 28 Jun 2013 08:56:17 -0400

Hi,

> If you want to use an attribute rather than a resource for the default
> value, attaching it in the image building process is not the right place and
> way too complicated. Please have a look at build/jam/BeOSRules. There's
> already an AddFileDataAttribute.

The problem is that some add-ons are simple symlinks to apps,
(Backgrounds and DiskUsage comes to mind).

Those are only created in the image building process.  I initially
implemented it using AddFileDataAttribute, but this fact led me to
pick another solution.

> An even less complicated AddStringAttribute
> Using a resource would be even simpler (I suppose the concerned add-ons
> already have a resource definition file) and IMO also more appropriate.

Since symlinks can't have resources per say, I suppose that resource
could be built within the target of the link.  The modification to
Tracker would be more substantial though, but can give it a try.

Philippe

Other related posts: