From d692fe91fb6e5b2dcaab79dfa8141cf7117b4a42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Mon, 2 Jan 2023 11:57:23 +0800 Subject: [PATCH] Windows: don't try to load config file in `/etc` --- CHANGELOG.md | 3 ++- src/fastfetch.c | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b3866154..47e783744 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,9 +10,10 @@ Logos: Bugfixes: * `--logo-type` now does accept `iterm` too (@CarterLi, #374) - + Other: * Fixed a Typo in iterm error message (@jessebot, #376) +* Don't try to load config file in `/etc` (Windows) (@jessebot, #376) # 1.8.2 diff --git a/src/fastfetch.c b/src/fastfetch.c index f5c522864..b7a9c8cb8 100644 --- a/src/fastfetch.c +++ b/src/fastfetch.c @@ -1423,7 +1423,10 @@ int main(int argc, const char** argv) ffStrbufInitA(&data.structure, 256); data.loadUserConfig = true; + #ifndef _WIN32 parseConfigFileSystem(&instance, &data); + #endif + parseConfigFileUser(&instance, &data); parseArguments(&instance, &data, argc, argv);