Skip to content

Commit ef6af84

Browse files
committed
Fastfetch: fix presets not detected by file name (#529)
1 parent f64bf73 commit ef6af84

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# 2.0.2
22

3-
Fix compiling for MSYS2, no functional changes.
4-
53
Bugfixes:
64
* Workarund [a compiler bug of GCC](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85282) (Windows)
5+
* Fix presets not detected by file name (#529)
76

87
# 2.0.1
98

src/fastfetch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ static void optionParseConfigFile(FFdata* data, const char* key, const char* val
758758
FF_STRBUF_AUTO_DESTROY absolutePath = ffStrbufCreateA(128);
759759
if (ffPathExpandEnv(value, &absolutePath))
760760
{
761-
bool success = isJsonConfig ? parseJsoncFile(value) : parseConfigFile(data, absolutePath.chars);
761+
bool success = isJsonConfig ? parseJsoncFile(absolutePath.chars) : parseConfigFile(data, absolutePath.chars);
762762

763763
if(success)
764764
return;
@@ -773,7 +773,7 @@ static void optionParseConfigFile(FFdata* data, const char* key, const char* val
773773
ffStrbufAppendS(&absolutePath, "fastfetch/presets/");
774774
ffStrbufAppendS(&absolutePath, value);
775775

776-
bool success = isJsonConfig ? parseJsoncFile(value) : parseConfigFile(data, absolutePath.chars);
776+
bool success = isJsonConfig ? parseJsoncFile(absolutePath.chars) : parseConfigFile(data, absolutePath.chars);
777777

778778
if(success)
779779
return;

0 commit comments

Comments
 (0)