Bug 407718

Summary: kcrash prints error messages if DISPLAY isn't set
Product: [Frameworks and Libraries] frameworks-kcrash Reporter: Fabian Vogt <fabian>
Component: generalAssignee: David Faure <faure>
Status: REPORTED ---    
Severity: normal CC: kdelibs-bugs
Priority: NOR    
Version: 5.58.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Fabian Vogt 2019-05-19 10:49:26 UTC
Many programs do not need $DISPLAY, like kpackagetool5.

Still, if $DISPLAY is not set, kcrash prints "Error: could not determine $DISPLAY." on startup.

This shows up during cmake runs, for instance:

[  229s] CMake Warning at /usr/lib/cmake/KF5Package/KF5PackageMacros.cmake:67 (message):
[  229s]   warnings during generation of metainfo for org.kde.desktopcontainment:
[  229s]   Error: could not determine $DISPLAY.
[  229s] 
[  229s] Call Stack (most recent call first):
[  229s]   /usr/lib/cmake/KF5Plasma/KF5PlasmaMacros.cmake:34 (kpackage_install_package)
[  229s]   containments/desktop/CMakeLists.txt:3 (plasma_install_package)