TerminalShell: detect cmd ( Windows )

This commit is contained in:
李通洲
2022-10-09 21:33:54 +08:00
parent 6a9fd7a84d
commit 0381d88e2d
@@ -76,7 +76,9 @@ static uint32_t getShellInfo(FFTerminalShellResult* result, uint32_t pid)
getShellVersion(&result->shellExe, &result->shellVersion);
}
else if(ffStrbufIgnCaseCompS(&result->shellPrettyName, "powershell") == 0)
ffStrbufSetS(&result->shellProcessName, "Windows PowerShell");
ffStrbufSetS(&result->shellPrettyName, "Windows PowerShell");
else if(ffStrbufIgnCaseCompS(&result->shellPrettyName, "cmd") == 0)
ffStrbufSetS(&result->shellPrettyName, "Command Prompt");
return ppid;
}