#ifdef _WIN32
{
PWSTR folder = nullptr;
auto q = SHGetKnownFolderPath(
FOLDERID_ProgramFilesX86,
KF_FLAG_DEFAULT,
nullptr,
&folder);
if (q == S_OK) {
newPath = folder;
newPath /= "SVG Cleaner";
newPath /= "svgcleaner-cli.exe";
CoTaskMemFree(folder);
if (std::filesystem::exists(newPath)) {
pathToOptimizer = std::move(newPath);
return true;
}
}
}
#endif
win32 {
LIBS += -lshell32 -lole32
}