Terminal (Windows): ignore far.exe

Ref: https://github.com/fastfetch-cli/fastfetch/issues/784#issuecomment-2043052512
This commit is contained in:
李通洲
2024-04-08 23:37:53 +08:00
parent 12ca1a0cf7
commit c94180b3d2
@@ -294,7 +294,7 @@ static uint32_t getTerminalInfo(FFTerminalResult* result, uint32_t pid)
while (pid != 0 && getProcessInfo(pid, &ppid, &result->processName, &result->exe, &result->exeName, &result->exePath, &hasGui))
{
if(!hasGui)
if(!hasGui || ffStrbufIgnCaseEqualS(&result->processName, "far.exe")) // Far includes GUI objects...
{
//We are in nested shell
ffStrbufClear(&result->processName);