From 23e587b9091e85fab9a80f6c38b1c20a965387eb Mon Sep 17 00:00:00 2001 From: cold-brewed Date: Tue, 30 Aug 2022 19:38:22 -0400 Subject: [PATCH] qt: Append usr_path for relative paths in plat_fopen64() on linux as well as macOS --- src/qt/qt_platform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt/qt_platform.cpp b/src/qt/qt_platform.cpp index ae0baf64b..019d38cf4 100644 --- a/src/qt/qt_platform.cpp +++ b/src/qt/qt_platform.cpp @@ -167,7 +167,7 @@ plat_fopen(const char *path, const char *mode) FILE * plat_fopen64(const char *path, const char *mode) { -#ifdef Q_OS_MACOS +#if defined(Q_OS_MACOS) or defined(Q_OS_LINUX) QFileInfo fi(path); QString filename = fi.isRelative() ? usr_path + fi.filePath() : fi.filePath(); return fopen(filename.toUtf8().constData(), mode);