diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-07-04 14:40:41 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-07-04 14:40:41 (GMT) |
commit | e49bc0460be4b94904b6e965845fb8f228672379 (patch) | |
tree | b435b764d08b70e56e4605224e812c12d67beaac /Swiften/Application/Unix/UnixApplication.h | |
parent | d9e7abfd22ef30e6535b8bb290b9bd1ef7a7bff0 (diff) | |
download | swift-contrib-e49bc0460be4b94904b6e965845fb8f228672379.zip swift-contrib-e49bc0460be4b94904b6e965845fb8f228672379.tar.bz2 |
Moved platform-specific stuff out of Application.
Diffstat (limited to 'Swiften/Application/Unix/UnixApplication.h')
-rw-r--r-- | Swiften/Application/Unix/UnixApplication.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Swiften/Application/Unix/UnixApplication.h b/Swiften/Application/Unix/UnixApplication.h index 0b7bf67..d087bd8 100644 --- a/Swiften/Application/Unix/UnixApplication.h +++ b/Swiften/Application/Unix/UnixApplication.h @@ -15,6 +15,10 @@ namespace Swift { return &messageDisplay_; } + virtual boost::filesystem::path getHomeDir() const { + return boost::filesystem::path(getenv("HOME")); + } + boost::filesystem::path getSettingsDir() const { boost::filesystem::path result(getHomeDir() / ("." + getName().getLowerCase().getUTF8String())); boost::filesystem::create_directory(result); |