Fix log destination again on macOS

This commit is contained in:
Pengfei
2021-09-11 08:56:34 +08:00
parent be70f5a932
commit 455e9a13ce
6 changed files with 23 additions and 14 deletions
+2
View File
@@ -251,6 +251,8 @@ int main(int argc, char* argv[]) {
QCoreApplication::setOrganizationName(QStringLiteral("zhaowenlan1779"));
QCoreApplication::setApplicationName(QStringLiteral("threeSD"));
Common::Logging::InitializeLogging();
#ifdef __APPLE__
std::string bin_path = FileUtil::GetBundleDirectory() + DIR_SEP + "..";
chdir(bin_path.c_str());