summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Application/MacOSX')
-rw-r--r--Swiften/Application/MacOSX/MacOSXApplication.cpp4
-rw-r--r--Swiften/Application/MacOSX/MacOSXApplication.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/Swiften/Application/MacOSX/MacOSXApplication.cpp b/Swiften/Application/MacOSX/MacOSXApplication.cpp
index 1df2bfa..79d7586 100644
--- a/Swiften/Application/MacOSX/MacOSXApplication.cpp
+++ b/Swiften/Application/MacOSX/MacOSXApplication.cpp
@@ -15,4 +15,8 @@ boost::filesystem::path MacOSXApplication::getSettingsDir() const {
return result;
}
+boost::filesystem::path MacOSXApplication::getHomeDir() const {
+ return boost::filesystem::path(getenv("HOME"));
+}
+
}
diff --git a/Swiften/Application/MacOSX/MacOSXApplication.h b/Swiften/Application/MacOSX/MacOSXApplication.h
index 9e77c54..e408ffd 100644
--- a/Swiften/Application/MacOSX/MacOSXApplication.h
+++ b/Swiften/Application/MacOSX/MacOSXApplication.h
@@ -11,6 +11,7 @@ namespace Swift {
public:
MacOSXApplication(const String& name);
+ virtual boost::filesystem::path getHomeDir() const;
virtual ApplicationMessageDisplay* getApplicationMessageDisplay();
boost::filesystem::path getSettingsDir() const;