Drop klauncher usage from KCrash
ClosedPublic

Authored by davidedmundson on Mar 27 2020, 12:04 PM.

Details

Summary

As per other discussions, kdeinit has limited gains and is not widely
deployed in KDE application. KInit as a framework is on its way out.

As such using klauncher to restart a crashed application has no benefit,
we can drop it and simplify the code significantly.

It also means restarted apps stay within any namespaces set up by the launcher.

Test Plan

killall -SEGV on plasmashell and dolphin
Both restarted as expected
The direct code path already existed, so should be safe to use

Diff Detail

Repository
R285 KCrash
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
Restricted Application added a project: Frameworks. · View Herald TranscriptMar 27 2020, 12:04 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
davidedmundson requested review of this revision.Mar 27 2020, 12:04 PM
sitter accepted this revision.Apr 8 2020, 10:30 AM
sitter added a subscriber: sitter.
sitter added inline comments.
src/kcrash.cpp
626

This seems to serve no purpose anymore. startProcessInternal could be merged into this so there's only one startProcess function left.

This revision is now accepted and ready to land.Apr 8 2020, 10:30 AM

and merge methods

This revision was automatically updated to reflect the committed changes.