#17 Home directory hard-coded under Windows

open-out-of-date
nobody
None
5
2008-02-27
2007-12-05
Anonymous
No

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

Discussion

  • Rumpeltux

    Rumpeltux - 2007-12-11

    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.

     
  • Rumpeltux

    Rumpeltux - 2008-02-27
    • labels: 755460 -->
    • status: open --> open-out-of-date
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks