[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: [PATCH] Write logs to $HOME/.gEDA/logs/.



On Sun, 2009-01-18 at 07:09 +0000, Peter TB Brett wrote:
> On Sunday 18 January 2009 02:20:19 Bob Paddock wrote:
> > > This is "better", but its still not quite the right place to put things
> > > on Win32 if you were aiming for a more native place.
> >
> > APPDATA may always be set, I'm not sure.
> >
> 
> Hmm, yes, it sounds like $APPDATA/gEDA/ is where we should keep things on 
> Windows -- possibly the configuration files as well. Gah. Does anyone know 
> where Microsoft keep the spec for this?

http://msdn.microsoft.com/en-us/library/ms995853.aspx
http://msdn.microsoft.com/en-us/library/bb762494.aspx
http://msdn.microsoft.com/en-us/library/bb762204(VS.85).aspx

Do see the glib code for g_get_home_folder() (actually, look in
glib/gutils.c, and find load_user_special_dirs().

Note it checks some env-vars first. Also note the DLL loading, and
conversion between UTF-16 and UTF-8 when calling the APIs to retrieve
this information.


-- 
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-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user