On Fri, 2004-06-25 at 18:51 +0200, wrote: > > Hi, > > I'm developing a library, and I need to store some files in the user's home > directory. Idealy, I'd like to make a .hml directory, and just throw the files > under it like > > /home/ian > |---.hml > |---file0 > |---file1 > |---.... > |---fileN > > obviously, this is pretty standard stuff, but I was wondering if there was any > accepted wisdom for getting at the current user's home directory. I'd like to > only depend on glib. so i guess, g_get_home_dir is the way to go, right? > Again, this is a library, not an application. Using g_get_home_dir is probably a good idea. It does work really hard to get things right (look at the g_get_any_init function in <http://cvs.gnome.org/viewcvs/glib/glib/gutils.c?rev=1.131&view=auto> and be thankful for our base libraries!), and does so too in windows, which might be useful if your library has uses there. -- m -- Mariano Suárez-Alvarez <msuarezalvarez arnet com ar>
Attachment:
signature.asc
Description: This is a digitally signed message part