[KProcessList] Split command line and process name
Summary:
Currently KProcessList had a method called "name" which confusingly
returns the entire command line.
In many cases where we want to use this class we need both. (See D22327)
This class exposes both "name" and "command" with the respective
properties.
In order to do this correctly we need to split the process name before
the null characters are replaced with spaces.
CHANGELOG: KProcessInfo::name() now returns only the name of the
executable. For the full command line use KProcessInfo::command()
Test Plan:
Unit test
Manually invoked ps list output
Subscribers: kde-frameworks-devel
Tags: Frameworks
Differential Revision: https://phabricator.kde.org/D22471