kcrash when started from terminal

David Faure faure at kde.org
Thu Sep 24 07:30:53 UTC 2015


On Wednesday 23 September 2015 14:24:33 Harald Sitter wrote:
> Heya
> 
> is it intentional that KCrash is not running when an application is
> started via kdeinit?
> 
> In particular since only very few libraries seem to link KCrash it
> never gets loaded for 99% of applications, thus not installing as a
> qcoreapp crash handler and thus not handling crashes.
> Notably exception being forking from kdeinit (i.e. krunner a desktop file).
> 
> It took me quite a while to notice that apps started from a terminal
> never get a drkonqi on crash and track that to kcrash not having its
> Q_COREAPP_STARTUP_FUNCTION run, so I think at best this is very
> unintuitive from a development perspective :)

The plan was for all GUI apps to link to KCrash, and I think this is still the
best fix here. Someone needs to go through CMakeLists.txt for apps and add
KF5::Crash.

Do people porting to KF5 follow a guide for the cmakelists.txt part of it?
That guide should mention this too ;)

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5



More information about the Kde-frameworks-devel mailing list