summaryrefslogtreecommitdiff
path: root/src/PlatformUtils-posix.cc
blob: d2b879275a8735af001735dc97ca95fd129b545e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "PlatformUtils.h"
#include "boosty.h"

std::string PlatformUtils::documentsPath()
{
	const char *home = getenv("HOME");
	if (home) {
		fs::path docpath(home);
		docpath = docpath / ".local" / "share";
		return boosty::stringy(docpath);
	}
	else {
		return "";
	}
}
contact: Jan Huwald // Impressum