From 92cc99ef379f301a9ee3cb15f6a6744ea7a75a08 Mon Sep 17 00:00:00 2001 From: Ramiro Polla Date: Tue, 21 Sep 2010 23:06:50 -0300 Subject: [PATCH] Also check for %APPDATA% on win32 to use as home --- util.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/util.c b/util.c index 0ea67b4c2..905bd24b6 100644 --- a/util.c +++ b/util.c @@ -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()); -- 2.47.3