When building under Windows the home directory is hardcoded as C:\ -- not only is this wrong but it will fail under restricted accounts/Vista where the user doesn't have access to the root directory
The source states "Maybe I should grab home_dir from registry, but the best that I could get from there is user's Start menu. It sucks!" however there are ectually three environment variables to different directories that could be used (each has a slightly different usage/meaning):-
USERPROFILE -- path to root of user home directory
LOCALAPPDATA -- path to non-roaming settings directory
APPDATA -- path to roaming settings directory
There is also the "TEMP" environment variable that should always be define -- if a getenv() on all of these fail something is very seriously is wrong!
David Field
sf@drfield.net
Logged In: YES
user_id=989758
Originator: NO
Please provide a patch if possible, since I have no means to test/build this on windows.