diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-08-22 09:20:42 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-08-22 09:20:42 (GMT) |
commit | 279761bbf59a5129793896dcc8fc2bc04955b1a4 (patch) | |
tree | 2e2ea14473ff4bb4ed78a24df31b9374a8b94fc8 | |
parent | 30e996565f292159a088d6fb9f735f776fe5fed3 (diff) | |
download | swift-contrib-279761bbf59a5129793896dcc8fc2bc04955b1a4.zip swift-contrib-279761bbf59a5129793896dcc8fc2bc04955b1a4.tar.bz2 |
Use APPDATA dir on Windows for storing settings.
-rw-r--r-- | Swiften/Application/Windows/WindowsApplication.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/Application/Windows/WindowsApplication.h b/Swiften/Application/Windows/WindowsApplication.h index d31691c..365157b 100644 --- a/Swiften/Application/Windows/WindowsApplication.h +++ b/Swiften/Application/Windows/WindowsApplication.h @@ -15,8 +15,8 @@ namespace Swift { } boost::filesystem::path getSettingsDir() const { - char* homeDirRaw = getenv("APPDATA"); - boost::filesystem::path result(boost::filesystem::path(getHomeDir()) / getName().getUTF8String()); + char* appDirRaw = getenv("APPDATA"); + boost::filesystem::path result(boost::filesystem::path(appDirRaw) / getName().getUTF8String()); boost::filesystem::create_directory(result); return result; } |