On Sat, Jan 17, 2009 at 8:10 PM, Peter TB Brett <[email protected]> wrote: > On Sunday 18 January 2009 01:07:13 Bob Paddock wrote: >> > I'd appreciate comments as to whether this will work (or even compile) >> > on Windows! >> >> + dir_path = g_build_filename (g_getenv ("HOME"), >> + ".gEDA", "logs", NULL); >> >> Should test to see if HOME really exists on Windows, >> it usually doesn't by default. You don't want to report >> the failure of HOME not existing in the log during >> the install process. >> > > What should it do if HOME doesn't exist? That seems like a pathological case.
This *is* Windows we are talking about here. It is rare that HOME does exists. TEMP generally exists as a envar to a local user directory. Use it if HOME does not exists. TMP sometimes exists, and usually but not always, is the same as TEMP. > Default to using the CWD? Probably a warning and bail, telling them how to create HOME. Some IT departments lock down Program Files so you can't write there. It can be hard to tell how the current directory is relevant to the end instillation during the install process. If it is Vista you can't. > > Peter > > > > -- > Peter Brett > > Electronic Systems Engineer > Integral Informatics Ltd > > > > _______________________________________________ > geda-user mailing list > [email protected] > http://www.seul.org/cgi-bin/mailman/listinfo/geda-user > > -- http://www.wearablesmartsensors.com/ http://www.softwaresafety.net/ http://www.designer-iii.com/ http://www.unusualresearch.com/ _______________________________________________ geda-user mailing list [email protected] http://www.seul.org/cgi-bin/mailman/listinfo/geda-user

