[KProcessList] Split command line and process name

Authored by davidedmundson on Jul 15 2019, 10:34 AM.

Description

[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

Details

Committed
davidedmundsonAug 15 2019, 3:00 PM
Differential Revision
D22471: [KProcessList] Split command line and process name
Parents
R244:05f13852b02e: GIT_SILENT Upgrade KF5 version to 5.62.0.
Branches
Unknown
Tags
Unknown