Browse Source
Merge pull request #15 from kozyilmaz/macos
[macOS] zcash.conf is located in $HOME/Library/Application Support
import_zecw
adityapk00
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
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 |
|
|
|