Thread overview | |||||
---|---|---|---|---|---|
|
August 05, 2013 get user config dir | ||||
---|---|---|---|---|
| ||||
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 Thanks, Nick |
August 05, 2013 Re: get user config dir | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick Treleaven | 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/ |
August 05, 2013 Re: get user config dir | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Parker | On 05/08/2013 13:24, Mike Parker wrote:
> 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/
Thanks for the info. I'll probably copy the gtkD one into my code then (not sure how to use PhysicsFS for that).
|
Copyright © 1999-2021 by the D Language Foundation