diff options
Diffstat (limited to 'Swiften/Application/Application.cpp')
-rw-r--r-- | Swiften/Application/Application.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Swiften/Application/Application.cpp b/Swiften/Application/Application.cpp index e5c925a..be77e95 100644 --- a/Swiften/Application/Application.cpp +++ b/Swiften/Application/Application.cpp @@ -21,20 +21,6 @@ boost::filesystem::path Application::getAvatarDir() const { return getSettingsDir() / "avatars"; } -boost::filesystem::path Application::getHomeDir() const { - // FIXME: Does this work on windows? - // No it doesn't, putting alternative paths in for the moment. - char* homeDirRaw = getenv("HOME"); - if (!homeDirRaw) { - homeDirRaw = getenv("APPDATA"); - } - if (!homeDirRaw) { - homeDirRaw = getenv("USERPROFILE"); - } - boost::filesystem::path homeDir(homeDirRaw); - return homeDir; -} - boost::filesystem::path Application::getProfileDir(const String& profile) const { boost::filesystem::path result(getHomeDir() / profile.getUTF8String()); boost::filesystem::create_directory(result); |