wmtop: patch for process name extraction on Linux
commit51132ae7ee500abd56d315a3947df9e7e0ef1470
authorTilmann Hentze <0xcafe@directbox.com>
Mon, 30 Mar 2020 15:36:40 +0000 (30 11:36 -0400)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 31 Mar 2020 07:16:24 +0000 (31 08:16 +0100)
treeb74a0eec05c8a5a2a710a9ea2b96d02c69ab2e52
parent53bc19104aa9f11b9ec7be3d6bd29582893a5f5f
wmtop: patch for process name extraction on Linux

I received the following patch from Tilmann Hentze <0xcafe@directbox.com>
in an email:

> Hello,
> there are processes, that have space characters in their names, for example
> Firefoxe's "Web Content" process.
> The current sscanf line for Linux would only considers the first part of
> the process name, e.g. "Web" and cut off the rest.
> Attached patch should consider the complete process name between parentheses.

> Further I did not touch the handling of removal of "kdeinit", since
> I am not using KDE and am not sure if the assumptions in the source code
> are still valid.

> Best Regards,
> Tilmann.

Signed-off-by: Doug Torrance <dtorrance@piedmont.edu>
wmtop/wmtop.c