https://bugs.kde.org/show_bug.cgi?id=436954

            Bug ID: 436954
           Summary: Plasma Version detection broken and unreliable
           Product: kinfocenter
           Version: unspecified
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: System Information
          Assignee: plasma-b...@kde.org
          Reporter: skierp...@gmail.com
                CC: sit...@kde.org
  Target Milestone: ---

SUMMARY
In Fedora 34, System Information doesn't show KDE Plasma Version.

STEPS TO REPRODUCE
1. Run `kinfocenter` from a terminal, or start "system information" from
Application Launcher.

OBSERVED RESULT
There's no KDE Plasma Version (even though this bug template calls for it).

EXPECTED RESULT
KDE Plasma Version used to appear. One workaround is run `plasmashell
--version` in a terminal.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)    ← or not 😉
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2 on Wayland

ADDITIONAL INFORMATION
https://invent.kde.org/plasma/kinfocenter/-/blob/master/Modules/about-distro/src/PlasmaEntry.cpp
is trying to get the Plasma version by reading the value of
X-KDE-PluginInfo-Version from xsessions/plasma.desktop.
But https://invent.kde.org/plasma/plasma-workspace/-/tree/master/login-sessions
now installs /usr/share/wayland-sessions/plasma.desktop and
/usr/share/xsessions/plasmax11.desktop, so this lookup fails. I guess the code
could look for wayland-sessions/plasma.desktop if the XDG_SESSION_TYPE
environment variable == "wayland", otherwise xsessions/plasmax11.desktop.

As the code comments, this is an unreliable way to detect the Plasma version:
>  // Since Plasma version detection isn't based on a library query it can fail
>  // in weird cases; instead of admitting defeat we simply hide everything :P

kinfocenter doesn't seem to link in any plasma library that it could query for
a version. For comparison, Gnome installs /usr/share/gnome/gnome-version.xml,
'a data file that exports the "GNOME" version to the Settings Details panel.'

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to