Bug 476012 - kinfo reports "offscreen" as the Graphics Platform when run in a terminal window
Summary: kinfo reports "offscreen" as the Graphics Platform when run in a terminal window
Status: RESOLVED FIXED
Alias: None
Product: kde-cli-tools
Classification: Plasma
Component: general (show other bugs)
Version: 5.27.8
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-23 17:44 UTC by Miguel Rozsas
Modified: 2024-02-03 04:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miguel Rozsas 2023-10-23 17:44:09 UTC
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
Comment 1 Harald Sitter 2023-10-25 11:51:23 UTC
Kind of by design since it is meant to work on a TTY.
Comment 2 Nate Graham 2023-10-25 13:41:51 UTC
Maybe, but it's not really the information that the user wanted though, right?
Comment 3 Harald Sitter 2023-10-25 14:05:49 UTC
Perhaps. It's much more involved to get that information, without stray errors, though.
Comment 4 Bug Janitor Service 2024-01-24 11:07:01 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kde-cli-tools/-/merge_requests/100
Comment 5 Harald Sitter 2024-01-30 10:18:55 UTC
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
Comment 6 Harald Sitter 2024-01-30 10:30:24 UTC
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