On Fri, 2008-11-28 at 08:00 +0200, Duncan Drennan wrote:
> >> Can't scan directory
> >> 'd:\program
> >> files\geda\bin\..\share\pcb\pcblib-newlib:../../../Projects/footprints/trunk'
> > /\
> > ----------------------------------------------------------
> >
> > Did you add that : specifically, or did the GUI do that?
>
> No the GUI did. In that case I only specified
> "../../../Projects/footprints/trunk" in the Preferences -> Library
> dialogue (in others cases I tried to put an absolute path).
Ok, its definitely a bug..
src/hid/gtk/gui-config.c:
static void
add_to_paths_list (GList ** list, gchar * path_string)
{
gchar *p, *paths;
paths = g_strdup (path_string);
for (p = strtok (paths, ":"); p && *p; p = strtok (NULL, ":"))
*list = g_list_prepend (*list, expand_dir (p));
g_free (paths);
}
This also looks suspicious (about line 715):
for (list = lib_newlib_list; list; list = list->next)
{
str = Settings.LibraryTree;
dir = expand_dir ((gchar *) list->data);
Settings.LibraryTree = g_strconcat (str, ":", dir, NULL);
g_free (dir);
g_free (str);
}
There are also several places in the GTK HID which call
g_get_home_dir(), and thus could potentially have a different idea of
that directory, compared to the algorithm the PCB core uses for
determining the home directory.
Apologies I'm writing about this here, rather than fixing the code, but
I've not got time today, and am away this weekend.
Best regards,
--
Peter Clifton
Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA
Tel: +44 (0)7729 980173 - (No signal in the lab!)
_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev