Commit cd32b63f authored by Christoph Feck's avatar Christoph Feck
Browse files

Fix KDE process names shown as "kdeinit4:"

Patch by Alexander Chehovsky, thanks!
BUG: 277421
parent 88af18c8
......@@ -380,7 +380,9 @@ bool ProcessesLocal::Private::readProcCmdline(const QString &dir, Process *proce
processNameStart = 0;
else
processNameStart++;
process->name = process->command.mid(processNameStart, zeroIndex - processNameStart);
QString nameFromCmdLine = process->command.mid(processNameStart, zeroIndex - processNameStart);
if(nameFromCmdLine.startsWith(process->name))
process->name = nameFromCmdLine;
process->command.replace('\0', ' ');
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment