Browse Source

wip

pull/99/head
Jonathan "Duke" Leto 5 years ago
parent
commit
9c95a350d7
  1. 5
      src/connection.cpp

5
src/connection.cpp

@ -561,8 +561,13 @@ QString ConnectionLoader::zcashConfWritableLocation() {
}
QString ConnectionLoader::zcashParamsDir() {
//TODO: If /usr/share/hush exists, use that. It should not be assumed writeable
#ifdef Q_OS_LINUX
auto paramsLocation = QDir(QDir(QStandardPaths::writableLocation(QStandardPaths::HomeLocation)).filePath(".zcash-params"));
// Debian packages do not install into per-user dirs
if (!paramsLocation.exists()) {
paramsLocation = QDir("/").filePath("usr/share/hush");
}
#elif defined(Q_OS_DARWIN)
auto paramsLocation = QDir(QDir(QStandardPaths::writableLocation(QStandardPaths::HomeLocation)).filePath("Library/Application Support/ZcashParams"));
#else

Loading…
Cancel
Save