Browse Source

try this

pull/99/head
Jonathan "Duke" Leto 5 years ago
parent
commit
7a5bb32481
  1. 4
      src/connection.cpp

4
src/connection.cpp

@ -561,12 +561,12 @@ QString ConnectionLoader::zcashConfWritableLocation() {
}
QString ConnectionLoader::zcashParamsDir() {
#ifdef Q_OS_LINUX
//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");
paramsLocation = QDir(QDir("/").filePath("usr/share/hush"));
}
#elif defined(Q_OS_DARWIN)
auto paramsLocation = QDir(QDir(QStandardPaths::writableLocation(QStandardPaths::HomeLocation)).filePath("Library/Application Support/ZcashParams"));

Loading…
Cancel
Save