[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

How to find the user's config dir

From: Tobias Ringström <tobias_at_ringstrom.mine.nu>
Date: 2003-09-05 23:06:17 CEST

I'm writing a patch where I want to store stuff in a file in the user's
config dir, but I can't see how to find out what that path is. If it
wasn't for the config_dir variable, it would be a piece of cake to add a
function to get it, but now it depends on a program argument.

Unfortunately I need the path name from inside a Neon callback deep
within ra_dav. In the rest of the code that works with config directory,
config_dir is passed on as a parameter which is fine for the config
functions, but not for the ra code.

One way would be to add the user's config path to the config hash table.
Would that be acceptable, or do you have a better suggestion?

I'm kind of stuck now... :-(

/Tobias

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Sep 5 23:07:07 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.