diff --git a/CHANGELOG.md b/CHANGELOG.md index 753feb5fd..a7f739db9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 2.9.2 + +Bugfixes: +* Better portable mode detection of Windows Terminal (TerminalFont, Windows) + # 2.9.1 Features: diff --git a/src/detection/terminalfont/terminalfont.c b/src/detection/terminalfont/terminalfont.c index f48c37caf..2c751a382 100644 --- a/src/detection/terminalfont/terminalfont.c +++ b/src/detection/terminalfont/terminalfont.c @@ -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))