diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index d550e13136ac9..debab9e2a24f1 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -680,7 +680,7 @@ int GuiMain(int argc, char* argv[]) } // Validate/set custom css directory if (gArgs.IsArgSet("-custom-css-dir")) { - fs::path customDir = fs::PathFromString(gArgs.GetArg("-custom-css-dir", "")); + fs::path customDir = gArgs.GetPathArg("-custom-css-dir"); QString strCustomDir = GUIUtil::PathToQString(customDir); std::vector vecRequiredFiles = GUIUtil::listStyleSheets(); QString strFile; diff --git a/src/util/system.cpp b/src/util/system.cpp index 1125a5f5637c1..a0261103c42a3 100644 --- a/src/util/system.cpp +++ b/src/util/system.cpp @@ -481,7 +481,7 @@ fs::path ArgsManager::GetBackupsDirPath() if (!IsArgSet("-walletbackupsdir")) return GetDataDirNet() / "backups"; - return fs::absolute(fs::PathFromString(GetArg("-walletbackupsdir", ""))); + return fs::absolute(GetPathArg("-walletbackupsdir")); } void ArgsManager::ClearPathCache()