From 4d5f14e5ef4dfea6f49f11064717f16dd6eb50f5 Mon Sep 17 00:00:00 2001 From: kozyilmaz Date: Fri, 26 Oct 2018 10:11:43 +0300 Subject: [PATCH] [macOS] zcash.conf is located in $HOME/Library/Application Support/Zcash/zcash.conf on macOS https://github.com/zcash/zcash/blob/186874bb83658074a785574fc26ee17118219acc/src/util.cpp#L478 --- src/settings.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/settings.cpp b/src/settings.cpp index 637b892..8c6e6f1 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -101,6 +101,8 @@ bool Settings::loadFromFile() { #ifdef Q_OS_LINUX confLocation = QStandardPaths::locate(QStandardPaths::HomeLocation, ".zcash/zcash.conf"); +#elif defined(Q_OS_DARWIN) + confLocation = QStandardPaths::locate(QStandardPaths::HomeLocation, "/Library/Application Support/Zcash/zcash.conf"); #else confLocation = QStandardPaths::locate(QStandardPaths::AppDataLocation, "../../Zcash/zcash.conf"); #endif