kcrash when started from terminal

Aleix Pol aleixpol at kde.org
Wed Sep 23 14:43:08 UTC 2015


On Wed, Sep 23, 2015 at 2:24 PM, Harald Sitter <sitter at kde.org> 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 :)

IIRC, the plan was to make the QPlatfromTheme plugin link against
KCrash, to ensure the startup function has been called.

I don't see such a call nowadays, it should definitely be looked into.

Aleix


More information about the Kde-frameworks-devel mailing list