get user config dir

Mike Parker aldacron at gmail.com
Mon Aug 5 05:24:38 PDT 2013


On Monday, 5 August 2013 at 11:43:05 UTC, Nick Treleaven wrote:
> Hi,
> Does Phobos have a way to portably get the user's configuration 
> directory?
>
> As an example, GTK+ has this:
> http://www.gtk.org/api/2.6/glib/glib-Miscellaneous-Utility-Functions.html#g-get-user-config-dir

No, it doesn't. I use PhysFS[1]. It's probably overkill if that's 
all you need it for, but it gets the job done if you don't want 
to write roll your own.

[1] http://icculus.org/physfs/


More information about the Digitalmars-d-learn mailing list