Path: blob/main/cad/antimony/files/patch-app_app_main.cpp
16461 views
--- app/app/main.cpp.orig 2023-01-16 19:52:05 UTC1+++ app/app/main.cpp2@@ -69,6 +69,17 @@ int main(int argc, char *argv[])3fab_paths.push_back(p.toStdString());4}5fab::postInit(fab_paths);6+#elif defined Q_OS_FREEBSD7+ auto dir = QCoreApplication::applicationDirPath();8+ std::vector<std::string> fab_paths =9+ {(dir + "/sb").toStdString(),10+ (dir + "/../share/antimony/").toStdString()};11+ for (auto p : QStandardPaths::standardLocations(12+ QStandardPaths::AppDataLocation))13+ {14+ fab_paths.push_back(p.toStdString());15+ }16+ fab::postInit(fab_paths);17#elif defined Q_OS_WIN3218auto dir = QCoreApplication::applicationDirPath();19fab::postInit({(dir + "/sb").toStdString()});202122