Bug 1598 - pulseview --version should not require a running X server
Summary: pulseview --version should not require a running X server
Status: CONFIRMED
Alias: None
Product: PulseView
Classification: Unclassified
Component: Command-line options (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-29 16:33 CEST by Soeren Apel
Modified: 2020-08-29 16:33 CEST (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Soeren Apel 2020-08-29 16:33:58 CEST
main() creates an instance of Application which is a QGUIApplication. Without a valid X server, this will segfault.

How to reproduce:

export DISPLAY=
pulseview --version

How this can potentially be fixed:

pulseview --version -platform offscreen
or
pulseview --version -platform minimal

However, it's unclear at this point how exactly the -platform paramter prevents the xcb/windows/etc. platform plugins from being loaded and loading offscreen or minimal instead. There's no documented API to perform this, see https://doc.qt.io/qt-5/qpa.html