mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
TerminalFont (Windows): better portable mode detection of Windows Terminal
`.portable` can be a folder. Fix #784
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
# 2.9.2
|
||||
|
||||
Bugfixes:
|
||||
* Better portable mode detection of Windows Terminal (TerminalFont, Windows)
|
||||
|
||||
# 2.9.1
|
||||
|
||||
Features:
|
||||
|
||||
@@ -174,7 +174,7 @@ static void detectFromWindowsTeriminal(const FFstrbuf* terminalExe, FFTerminalFo
|
||||
char* pathEnd = jsonPath + strlen(jsonPath);
|
||||
strncpy(pathEnd, ".portable", sizeof(jsonPath) - (size_t) (pathEnd - jsonPath) - 1);
|
||||
|
||||
if(ffPathExists(jsonPath, FF_PATHTYPE_FILE))
|
||||
if(ffPathExists(jsonPath, FF_PATHTYPE_ANY))
|
||||
{
|
||||
strncpy(pathEnd, "settings\\settings.json", sizeof(jsonPath) - (size_t) (pathEnd - jsonPath) - 1);
|
||||
if(!ffAppendFileBuffer(jsonPath, &json))
|
||||
|
||||
Reference in New Issue
Block a user