From 7a5bb324816a85fa3fc2f9adaa7429c09ba1de76 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Mon, 28 Oct 2019 20:35:20 -0700 Subject: [PATCH] try this --- src/connection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/connection.cpp b/src/connection.cpp index 907f0a1..c008d13 100644 --- a/src/connection.cpp +++ b/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"));