Enable embedded zcashd on mac
This commit is contained in:
@@ -388,7 +388,7 @@ QString ConnectionLoader::locateZcashConfFile() {
|
||||
#ifdef Q_OS_LINUX
|
||||
auto confLocation = QStandardPaths::locate(QStandardPaths::HomeLocation, ".zcash/zcash.conf");
|
||||
#elif defined(Q_OS_DARWIN)
|
||||
auto confLocation = QStandardPaths::locate(QStandardPaths::HomeLocation, "/Library/Application Support/Zcash/zcash.conf");
|
||||
auto confLocation = QStandardPaths::locate(QStandardPaths::HomeLocation, "Library/Application Support/Zcash/zcash.conf");
|
||||
#else
|
||||
auto confLocation = QStandardPaths::locate(QStandardPaths::AppDataLocation, "../../Zcash/zcash.conf");
|
||||
#endif
|
||||
@@ -399,7 +399,7 @@ QString ConnectionLoader::zcashConfWritableLocation() {
|
||||
#ifdef Q_OS_LINUX
|
||||
auto confLocation = QDir(QStandardPaths::writableLocation(QStandardPaths::HomeLocation)).filePath(".zcash/zcash.conf");
|
||||
#elif defined(Q_OS_DARWIN)
|
||||
auto confLocation = QDir(QStandardPaths::writableLocation(QStandardPaths::HomeLocation)).filePath("/Library/Application Support/Zcash/zcash.conf");
|
||||
auto confLocation = QDir(QStandardPaths::writableLocation(QStandardPaths::HomeLocation)).filePath("Library/Application Support/Zcash/zcash.conf");
|
||||
#else
|
||||
auto confLocation = QDir(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation)).filePath("../../Zcash/zcash.conf");
|
||||
#endif
|
||||
@@ -411,7 +411,7 @@ QString ConnectionLoader::zcashParamsDir() {
|
||||
#ifdef Q_OS_LINUX
|
||||
auto paramsLocation = QDir(QDir(QStandardPaths::writableLocation(QStandardPaths::HomeLocation)).filePath(".zcash-params"));
|
||||
#elif defined(Q_OS_DARWIN)
|
||||
auto paramsLocation = QDir(QDir(QStandardPaths::writableLocation(QStandardPaths::HomeLocation)).filePath("/Library/Application Support/ZcashParams"));
|
||||
auto paramsLocation = QDir(QDir(QStandardPaths::writableLocation(QStandardPaths::HomeLocation)).filePath("Library/Application Support/ZcashParams"));
|
||||
#else
|
||||
auto paramsLocation = QDir(QDir(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation)).filePath("../../ZcashParams"));
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user