Commit 50f1bf7a authored by Christoph Feck's avatar Christoph Feck Committed by Albert Astals Cid
Browse files

Fix KDE process names shown as "kdeinit4:"

Patch by Alexander Chehovsky, thanks!
BUG: 277421
(cherry picked from commit cd32b63f)
parent a120514f
......@@ -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