summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-07-04 14:40:41 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-07-04 14:40:41 (GMT)
commite49bc0460be4b94904b6e965845fb8f228672379 (patch)
treeb435b764d08b70e56e4605224e812c12d67beaac /Swiften/Application/Unix/UnixApplication.h
parentd9e7abfd22ef30e6535b8bb290b9bd1ef7a7bff0 (diff)
downloadswift-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.h4
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);