TerminalShell: support Alacritty terminal version detection

This commit is contained in:
李通洲
2023-01-11 23:46:15 +08:00
parent 66ed9adcda
commit ebfbf108a2
@@ -259,6 +259,9 @@ bool fftsGetTerminalVersion(FFstrbuf* processName, FF_MAYBE_UNUSED FFstrbuf* exe
#endif
if(ffStrbufStartsWithIgnCaseS(processName, "alacritty"))
return getExeVersionGeneral(exe, version);
const char* termProgramVersion = getenv("TERM_PROGRAM_VERSION");
if(termProgramVersion)
{