Bug 428843

Summary: Operating system version is empty for openSUSE Tumbleweed
Product: [Applications] plasma-systemmonitor Reporter: Andy Great <andythe_great>
Component: generalAssignee: KSysGuard Developers <ksysguard-bugs>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: ahiemstra, justin.zobel, plasma-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Operating system version is empty

Description Andy Great 2020-11-08 14:44:06 UTC
Created attachment 133150 [details]
Operating system version is empty

I install system monitor from here: https://build.opensuse.org/package/show/KDE:Frameworks5/plasma5-systemmonitor
The operating system name and version only show openSUSE Tumbleweed.
The operating system version is empty. (see screenshot)

It should show openSUSE TW version, something like 20201105.

System monitor 1.0
Operating System: openSUSE Tumbleweed 20201105
KDE Plasma Version: 5.20.2
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1
Kernel Version: 5.9.1-1-default
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-3770 CPU @ 3.40GHz
Memory: 7.5 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4000
Comment 1 Justin Zobel 2020-11-09 01:41:47 UTC
What are the contents of /etc/os-release  and /etc/lsb-release I imagine it's from one of those.
Comment 2 Arjen Hiemstra 2020-11-09 10:31:39 UTC
Tumbleweed is a rolling release if I recall correctly, most of the time it does not make a whole lot of sense for those to have a version number. Most likely OpenSuse does  set one in /etc/os-release where the data comes from.
Comment 3 Andy Great 2020-11-09 13:28:39 UTC
(In reply to Justin Zobel from comment #1)
> What are the contents of /etc/os-release  and /etc/lsb-release I imagine
> it's from one of those.

/etc/os-release
NAME="openSUSE Tumbleweed"
# VERSION="20201105"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20201105"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20201105"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo"

/etc/lsb-release does not exist
Comment 4 Andy Great 2020-11-09 13:35:44 UTC
I would suggest using VERSION_ID for OS version.
Comment 5 Justin Zobel 2020-11-09 21:39:22 UTC
According to the spec both version and version_id are optional which doesn't make things easy.

https://www.freedesktop.org/software/systemd/man/os-release.html

Arjen is it possible to check if version exists, if that doesn't try version_id?

Also not sure why openSUSE would include the version item and then comment it out or is that something you've done Andy?
Comment 6 Justin Zobel 2020-11-09 21:41:10 UTC
Nevermind on that Andy, it's commented out on the Live ISO of openSUSE, not sure why they do that.
Comment 7 Bug Janitor Service 2020-11-24 04:34:00 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2020-12-09 04:34:22 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 9 Andy Great 2020-12-22 20:21:13 UTC
I was told that VERSION is commented out because openSUSE Tumbleweed does not have a version. The only thing that was not commented out is VERSION_ID.
Comment 10 Arjen Hiemstra 2021-02-09 14:09:37 UTC
In that case, I think not showing a version is correct. In addition, accoding to https://www.freedesktop.org/software/systemd/man/os-release.html VERSION_ID is intended for scripts and programmatic use and not meant to be displayed to the user.