kcrash when started from terminal

David Faure faure at kde.org
Sat Nov 14 16:04:30 UTC 2015


On Saturday 14 November 2015 16:14:22 Andreas Cord-Landwehr wrote:
> Hey, so do I understand it right that for all applications we have to check 
> for two things:
> 
> 1. the application must link against KF5::Crash
> 2. there must be a call to some (dummy) function in KCrash like 
> "KCrash::setCrashHandler(KCrash::defaultCrashHandler);"
> to ensure that the linker actually links against KCrash when, when "--as-
> needed" is passed?

Yes but I added better API (since 5.15) for this:

KCrash::initialize();

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



More information about the Kde-frameworks-devel mailing list