launch autostart apps in ksmserver using KRun, not QProcess

Authored by lunakl on Apr 13 2017, 10:02 AM.

Description

launch autostart apps in ksmserver using KRun, not QProcess

The "move" (copy in fact) of the autostart code from klauncher simply
switched to QProcess. This resulted in a number of problems, as the incorrect
handling of .desktop file command if it had placeholders (worked around
already), kdeinit is no longer used (not sure how much that matters nowadays)
and finally QProcess simply eats all stdout/stderr of all such processes
(which, when daemonized, can lead even to the processes getting SIGPIPE'd).
If the application to start is a KService, simply launch it as such.
BUG: 369391
BUG: 370528

Details

Committed
lunaklApr 21 2017, 12:00 PM
Parents
R120:71908e79626b: recognize the WM even if given with a full path
Branches
Unknown
Tags
Unknown