mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
JsonConfig: use .jsonc as config file extension
to prevent text editors from confusing
This commit is contained in:
@@ -87,7 +87,7 @@ static const char* printJsonConfig(FFinstance* instance)
|
||||
FF_LIST_FOR_EACH(FFstrbuf, filename, instance->state.platform.configDirs)
|
||||
{
|
||||
uint32_t oldLength = filename->length;
|
||||
ffStrbufAppendS(filename, "fastfetch/config.json");
|
||||
ffStrbufAppendS(filename, "fastfetch/config.jsonc");
|
||||
bool success = ffAppendFileBuffer(filename->chars, &content);
|
||||
ffStrbufSubstrBefore(filename, oldLength);
|
||||
if (success) break;
|
||||
|
||||
Reference in New Issue
Block a user