Bug 374909

Summary: krunner launches applications as sub-processes
Product: [Plasma] krunner Reporter: Erik Quaeghebeur <bugs.kde.org>
Component: generalAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED FIXED    
Severity: normal CC: alexander.lohnau, bugs.kde.org, faure, kde
Priority: NOR    
Version First Reported In: 5.8.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.20
Sentry Crash Report:

Description Erik Quaeghebeur 2017-01-11 10:55:54 UTC
When launching applications through krunner, they become sub-processes of krunner. When krunner encounters a bug that makes it necessary to kill it, also these applications are killed.

I think it would be better if the applications are launched in their own process, separately from krunner.
Comment 1 Kai Uwe Broulik 2017-01-11 11:04:20 UTC
I can confirm. I think I've seen the same also with Kickoff, at least my Qt Creator sometimes just disappears when I quit plasmashell.

CC'ing David Faure.

Happens with both the service runner (that lists applications) which does KRun::runService(*service) as well as with the shell runner which does KRun::runCommand
Comment 2 Alexander Lohnau 2020-10-11 18:27:10 UTC
*** Bug 364268 has been marked as a duplicate of this bug. ***
Comment 3 Alexander Lohnau 2020-10-30 08:05:17 UTC
*** Bug 263705 has been marked as a duplicate of this bug. ***
Comment 4 Alexander Lohnau 2020-10-30 08:20:27 UTC
This is fixed with the port to KIO::ApplicationLauncherJob and KIO::CommandLauncherJob in https://phabricator.kde.org/D28347.