gEDA-dev: add-on dir name for pcb

Peter Clifton pcjc2 at cam.ac.uk
Sun Oct 1 09:54:19 EDT 2006


On Sun, 2006-10-01 at 14:16 +0100, Peter TB Brett wrote:
> On Saturday 30 September 2006 21:49, DJ Delorie wrote:
> > Ok, I've got a patch to have pcb dynamically load anything it finds in
> > a directory, but I'm a little stumped as to what to call the
> > directory.
> >
> > The patch looks in ~/.pcb/hids/ at the moment, but my first test case
> > defined a new user-defined action, not a hid at all.  In theory, we
> > can define actions, flags, attributes, and/or hids, in those files.
> >
> > So the question is, what to name that subdirectory.  Keep it "hids"
> > and just document the other uses?  Or name it something else?
> >
> > (yes, it will look in $prefix too)
> 
> I'm suggesting $prefix/pcb/hid as the system directory.

That could give me:

/usr/pcb/hid/
/opt/eda/pcb/hid/
/usr/local/pcb/hid/

etc..

I would prefer:

/usr/lib/pcb/
/opt/eda/lib/pcb/
/usr/local/lib/pcb/

Perhaps ~/.pcb/lib/.....  also works, and appears consistent with this
scheme.

I was originally thinking that they could go in $prefix/share/, but I
think for consistency with other apps, .so files ought to go in
$prefix/lib/appname/

Just my 2 pence.

Peter Clifton




More information about the geda-dev mailing list