rpm -qf /usr/bin/kinfo kde-cli-tools5-5.27.8-1.2.x86_64 STEPS TO REPRODUCE 1. open a terminal 2. run `kinfo` OBSERVED RESULT Graphics Platform: offscreen it should inform X11 or Wayland. on terminal, DISPLAY is properly set to :1 EXPECTED RESULT The proper graphical environment, X11 or Wayland. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Operating System: openSUSE Tumbleweed 20231020 KDE Plasma Version: 5.27.8 KDE Frameworks Version: 5.111.0 Qt Version: 5.15.11 Kernel Version: 6.5.6-1-default (64-bit) Graphics Platform: offscreen Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor Memory: 30.5 GiB of RAM Graphics Processor: AMD Radeon RX 6600 ADDITIONAL INFORMATION
Kind of by design since it is meant to work on a TTY.
Maybe, but it's not really the information that the user wanted though, right?
Perhaps. It's much more involved to get that information, without stray errors, though.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kde-cli-tools/-/merge_requests/100
Git commit 3eb95040a1f373063c5f3fe34e74370cda1137e7 by Harald Sitter. Committed on 30/01/2024 at 10:13. Pushed by sitter into branch 'master'. kinfo: run with relevant platforms when possible this allows the output to detect the correct platform and not always say offscreen when the user indeed invoked it on wayland for example. as a fallback we continue to use offscreen to ensure this can be invoked from a tty M +8 -1 kinfo/kinfo https://invent.kde.org/plasma/kde-cli-tools/-/commit/3eb95040a1f373063c5f3fe34e74370cda1137e7
Git commit e696def7d834edf3db78663bea72892f7398de55 by Harald Sitter. Committed on 30/01/2024 at 10:19. Pushed by sitter into branch 'Plasma/6.0'. kinfo: run with relevant platforms when possible this allows the output to detect the correct platform and not always say offscreen when the user indeed invoked it on wayland for example. as a fallback we continue to use offscreen to ensure this can be invoked from a tty (cherry picked from commit 3eb95040a1f373063c5f3fe34e74370cda1137e7) M +8 -1 kinfo/kinfo https://invent.kde.org/plasma/kde-cli-tools/-/commit/e696def7d834edf3db78663bea72892f7398de55