mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Use configDirs to look for fastfetch configs
This commit is contained in:
+7
-1
@@ -101,7 +101,7 @@ static void initConfigDirs(FFstate* state)
|
||||
|
||||
#endif
|
||||
|
||||
#if !(defined(_WIN32) || defined(__APPLE__) || defined(__ANDROID__))
|
||||
#if !defined(_WIN32) && !defined(__APPLE__)
|
||||
|
||||
FFstrbuf xdgConfigDirs;
|
||||
ffStrbufInitA(&xdgConfigDirs, 64);
|
||||
@@ -143,6 +143,12 @@ static void initConfigDirs(FFstate* state)
|
||||
ffStrbufAppendS(systemConfig, FASTFETCH_TARGET_DIR_ETC"/");
|
||||
FF_ENSURE_ONLY_ONCE_IN_LIST(systemConfig)
|
||||
|
||||
FFstrbuf* systemConfigInstall = ffListAdd(&state->configDirs);
|
||||
ffStrbufInitA(systemConfigInstall, 64);
|
||||
ffStrbufAppendS(systemConfigInstall, FASTFETCH_TARGET_DIR_INSTALL_SYSCONF"/");
|
||||
FF_ENSURE_ONLY_ONCE_IN_LIST(systemConfigInstall)
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
#undef FF_ENSURE_ONLY_ONCE_IN_LIST
|
||||
|
||||
Reference in New Issue
Block a user