Skip to content

Replace the Qt version option with our own, show more information

Joshua Goins requested to merge work/redstrate/better-version-option into master

This is a relatively common task when triaging bugs or asking users for more information about bugs. Checking the application is an option (KXMLGui's about window, Kirigami's about page, etc) but if the application does not launch for some reason getting this information is even harder. And for applications launched from sandboxes (Snap, Flatpak) then gauging versions from the outside user perspective is harder because their KDE/Qt versions could differ from their system packages.

So this patch replaces the default --version option we get from Qt - which only shows the application version - with a custom one that displays a bit more helpful information. This includes the operating system version, the application version, the KDE Frameworks version and the Qt version in use.

Before

$ tokodon --version                                                                                                                                 
tokodon 24.05.0

After

$ tokodon --version
Operating System: Fedora Linux 40 (KDE Plasma)
Tokodon Version: 24.05.1
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.1

CCBUG: 488720

Merge request reports