Handle dropping command line arguments in live upgrades

In e72f7bf8 we dropped a custom command line option (ksldfd) that only had any value in the X11 session.

In a Wayland session it was still passed but ignored.

QCommandLineParser::process errors out if it encounters an argument it doesn't understand.

If someone does a live upgrade from 6.7 to 6.8 the old KSLDApp will forward an argument and the greeter will error out.

Using QCommandLineParser::parse and continuing resolves this one case, but also hopefully makes us more robust for future changes.

Merge request reports

Loading
Loading