mirror of https://github.com/jorio/Pomme.git
Use fs::path (rather than std::filesystem) to detect config folder on Unix
This commit is contained in:
parent
e68cb857c1
commit
a3d0a3f16a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue