From 0bee0cc8ec06d3508934111c08140d435307798d Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Sat, 4 Jul 2009 16:04:28 +0100 Subject: Correcting the Windows application folders. diff --git a/Swiften/Application/Windows/WindowsApplication.h b/Swiften/Application/Windows/WindowsApplication.h index 25267f7..e78942a 100644 --- a/Swiften/Application/Windows/WindowsApplication.h +++ b/Swiften/Application/Windows/WindowsApplication.h @@ -16,16 +16,16 @@ namespace Swift { } boost::filesystem::path getSettingsDir() const { - boost::filesystem::path result(getHomeDir() / getName().getUTF8String()); + char* homeDirRaw = getenv("APPDATA"); + boost::filesystem::path result(boost::filesystem::path(getHomeDir()) / getName().getUTF8String()); boost::filesystem::create_directory(result); return result; } boost::filesystem::path getHomeDir() const { - char* homeDirRaw = getenv("APPDATA"); - if (!homeDirRaw) { - homeDirRaw = getenv("USERPROFILE"); - } + //FIXME: This should be My Documents + + char* homeDirRaw = getenv("USERPROFILE"); return boost::filesystem::path(homeDirRaw); } -- cgit v0.10.2-6-g49f6