Bug 470143 - Integrate the `kinfo` CLI tool in the Bug reporting guidelines
Summary: Integrate the `kinfo` CLI tool in the Bug reporting guidelines
Status: RESOLVED FIXED
Alias: None
Product: bugs.kde.org
Classification: Websites
Component: templates (show other bugs)
Version: unspecified
Platform: unspecified Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: KDE sysadmins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-22 19:10 UTC by Henning
Modified: 2024-07-31 08:46 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henning 2023-05-22 19:10:29 UTC
This is a total wishlist.

I made a GPLv3 CLI tool for displaying the systemsettings systeminfos along with information about a specified app.

It tries various package managers to find the package you want, supporting all the mayor KDE Distributions.

You can automatically copy it to the clipboard, supporting Wayland and X11.

It doesnt need sudo permissions and uses basic utils to get the infos, so it should work on every distro.

Just a little thing for the CLI people, I find it way faster than systemsettings, and because of the package manager integration its also more useful if you want to find the version of a product you want to post a bug about.

Its specifically made for Plasma, replicating the Systemsettings output nearly 1:1

https://github.com/trytomakeyouprivate/KDE-sysinfo-CLI/

Thanks guys! You are awesome!
Comment 1 Henning 2023-05-22 19:11:43 UTC
Example output:

sysinfo kate

Specified App: kate-libs-23.04.1-1.fc38.x86_64
kate-plugins-23.04.1-1.fc38.x86_64
kate-23.04.1-1.fc38.x86_64

--- Software ---
OS: Fedora Linux 38.20230522.0 (Kinoite)
KDE Plasma: 5.27.5
KDE Frameworks: 5.106.0
Qt: 5.15.9
Kernel: 6.2.15-300.fc38.x86_64
Compositor: wayland

--- Hardware ---
CPU: AMD Ryzen 5 PRO 3500U w/ Radeon Vega Mobile Gfx
RAM: 13.5 GB
GPU: AMD Radeon Vega 8 Graphics
Video memory: 2048MB
Comment 2 Nate Graham 2023-05-22 20:30:56 UTC
Heh, we actually implemented a similar thing ourselves via the `kinfo` command, which will be available in Plasma 5.27. But I appreciate your work to do the same! We should definitely tell people to run it, yeah.
Comment 3 Henning 2023-05-22 23:15:51 UTC
hahahahaha oh my god we literally did the same tool.

I have to say... My formatting is a bit nicer, it has integrated package managers and clipboard action, but I will look in your repos and try to improve it!
Comment 4 Henning 2023-05-22 23:16:41 UTC
also kinfo shows "offscreen" instead of wayland, has to be some weird bug
Comment 5 Nate Graham 2023-05-22 23:26:32 UTC
Weird, it actually shows that for me on X11 too, currently in Plasma 6.
Comment 6 Henning 2023-08-12 20:45:56 UTC
I would add that my tool also supports a package manager functionality. Flatpak is a bit flawed maybe, I will fix this soon, but for the rest you can simply append appnames and get it printed too, which is pretty great.

I focused on it to be
- written in bash entirely
- work on Wayland and X11 (clipboard)
- work without sudo
- support all distros

even though just having all package managers integrated may be an inelegant solution
Comment 7 Henning 2023-08-12 20:53:28 UTC
edit: cleaned up the flatpak search function. It will try to only list the installed one and only search online if this doesnt work
Comment 8 Nate Graham 2023-08-14 18:04:12 UTC
Ultimately we'll probably go with our tool because it'll be guaranteed to be pre-installed on all Plasma setups. I haven't added it to the template yet because there are still a lot of people using a version of Plasma older than 5.27 who won't have it available yet.
Comment 9 Henning 2023-08-14 20:50:01 UTC
completely understandable, but without having an easy appversion search not thaat useful. It would simply need a different version for every Distro then... lets see.

I have no idea of KDE development, would like to help but overwhelmed, not much time, and afraid of complex products ;D
Comment 10 Henning 2023-08-14 20:51:45 UTC
oh lol and kinfo lacks pretty much all features like clipboard copy, the exact output of systemsettings, many more details
Comment 11 Nate Graham 2023-08-16 00:19:11 UTC
I think we would welcome your contributions if you wanted to help make `kinfo` better. The code's here: https://invent.kde.org/plasma/kinfocenter/-/blob/master/Modules/about-distro/src/main.cpp
Comment 12 Nate Graham 2024-07-29 20:50:29 UTC
In progress with https://invent.kde.org/websites/bugs-kde-org/-/merge_requests/14.
Comment 13 Nate Graham 2024-07-31 08:46:54 UTC
Git commit a1d0868b39775f7c994d8eeb519a6b48e6d719b6 by Nate Graham.
Committed on 30/07/2024 at 13:25.
Pushed by bcooksley into branch 'kde-5.0'.

Clarify how to get version numbers in the new bug template
Related: bug 436951

M  +1    -1    template/en/default/bug/create/create.html.tmpl

https://invent.kde.org/websites/bugs-kde-org/-/commit/a1d0868b39775f7c994d8eeb519a6b48e6d719b6