diff --git a/Process.c b/Process.c index f68c305e0..7a31eece0 100644 --- a/Process.c +++ b/Process.c @@ -858,8 +858,12 @@ static bool Process_matchesFilter(const Process* this, const Table* table) { return true; const char* incFilter = table->incFilter; - if (incFilter && !String_contains_i(Process_getCommand(this), incFilter, true)) - return true; + if (incFilter){ + bool matchesCmdline = String_contains_i(Process_getCommand(this), incFilter, true); + bool matchesExePath = this->procExe && String_contains_i(this->procExe, incFilter, true); + if (!matchesCmdline && !matchesExePath) + return true; + } const ProcessTable* pt = (const ProcessTable*) host->activeTable; assert(Object_isA((const Object*) pt, (const ObjectClass*) &ProcessTable_class));