Skip to content

Commit

Permalink
Also check for %APPDATA% on win32 to use as home
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiropolla authored and jrosdahl committed Sep 26, 2010
1 parent 1e0fd56 commit 92cc99e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions util.c
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,12 @@ get_home_directory(void)
if (p) {
return p;
}
#ifdef _WIN32
p = getenv("APPDATA");
if (p) {
return p;
}
#endif
#ifdef HAVE_GETPWUID
{
struct passwd *pwd = getpwuid(getuid());
Expand Down

0 comments on commit 92cc99e

Please sign in to comment.