summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-05-21 22:19:29 (GMT)
committerMarius Kintel <marius@kintel.net>2013-05-21 22:19:29 (GMT)
commit41d1c94879f22f569082d4adf44427df2e7ed23b (patch)
tree47bdd176d441c4f68e84e49e87838505fd4ed3d7
parent13e4bcd50e324d5228ce920d1fc84aa3ba8d6e5e (diff)
Starting point for Unix implementation of built-in library path. Part of #125
-rw-r--r--src/PlatformUtils-posix.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/PlatformUtils-posix.cc b/src/PlatformUtils-posix.cc
index 7ed6735..e581de6 100644
--- a/src/PlatformUtils-posix.cc
+++ b/src/PlatformUtils-posix.cc
@@ -1,7 +1,10 @@
#include "PlatformUtils.h"
+#include "boosty.h"
std::string PlatformUtils::documentsPath()
{
- // FIXME: Implement
- return "";
+ fs::path docpath(getenv("HOME"));
+ docpath /= ".local" / "share";
+
+ return boosty::stringy(docpath);
}
contact: Jan Huwald // Impressum