Use fs::path (rather than std::filesystem) to detect config folder on Unix

This commit is contained in:
Iliyas Jorio 2020-12-29 21:23:20 +01:00
parent e68cb857c1
commit a3d0a3f16a
1 changed files with 2 additions and 2 deletions

View File

@ -176,7 +176,7 @@ OSErr FindFolder(short vRefNum, OSType folderType, Boolean createFolder, short*
const char* home = getenv("XDG_CONFIG_HOME");
if (home)
{
path = std::filesystem::path(home);
path = fs::path(home);
}
else
{
@ -185,7 +185,7 @@ OSErr FindFolder(short vRefNum, OSType folderType, Boolean createFolder, short*
{
return fnfErr;
}
path = std::filesystem::path(home) / ".config";
path = fs::path(home) / ".config";
}
#endif
break;