Bug 483168

Summary: About this System page: Graphics platform reported as X11 on Wayland
Product: [Applications] kinfocenter Reporter: 96wvn6bz
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: minor CC: medip642, nate, sitter
Priority: NOR Keywords: qt6
Version First Reported In: 6.0.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: system settings incorrectly showing graphics platform as x11, $xdg_session_types correctly shows wayland

Description 96wvn6bz 2024-03-10 21:12:29 UTC
Created attachment 166913 [details]
system settings incorrectly showing graphics platform as x11, $xdg_session_types correctly shows wayland

SUMMARY
Settings reports graphics platform to be X11 when on wayland.


STEPS TO REPRODUCE
1. Launch plasma on wayland
2.  System settings reports X11

EXPECTED RESULT
System settings reports wayland

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: EndeavourOS
KDE Plasma Version: 6.0.1
KDE Frameworks Version:  6.0.0
Qt Version: 6.6.2
Comment 1 Nate Graham 2024-03-11 21:05:05 UTC
Are you forcing that app or any other apps to run under the XCB platform, by any chance?
Comment 2 96wvn6bz 2024-03-13 23:51:01 UTC
(In reply to Nate Graham from comment #1)
> Are you forcing that app or any other apps to run under the XCB platform, by
> any chance?

How would I be able to check this?
Comment 3 Nate Graham 2024-03-14 16:28:59 UTC
If you don't know, then you probably didn't do it yourself, which means it's unlikely. But you can launch KWin debug console by searching for "kwindebug", and then see if Info Center appears in the "X11 Windows" tree.
Comment 4 Edip 2024-03-14 16:36:58 UTC
(In reply to 96wvn6bz from comment #2)
> (In reply to Nate Graham from comment #1)
> > Are you forcing that app or any other apps to run under the XCB platform, by
> > any chance?
> 
> How would I be able to check this?

You can use xprop command:
1- open your system settings and terminal
2- execute xprop
3- move your mouse into the system settings app
4- see if your cursor is changing to plus(+) sign
5- if its changing to plus (+) sign then this means your application is running under xwayland
Comment 5 96wvn6bz 2024-03-14 22:12:06 UTC
(In reply to Edip from comment #4)
> (In reply to 96wvn6bz from comment #2)
> > (In reply to Nate Graham from comment #1)
> > > Are you forcing that app or any other apps to run under the XCB platform, by
> > > any chance?
> > 
> > How would I be able to check this?
> 
> You can use xprop command:
> 1- open your system settings and terminal
> 2- execute xprop
> 3- move your mouse into the system settings app
> 4- see if your cursor is changing to plus(+) sign
> 5- if its changing to plus (+) sign then this means your application is
> running under xwayland

It does turn into a plus sign
Comment 6 Nate Graham 2024-03-14 22:15:54 UTC
Welp, that's why it's happening!

Now you get to debug why KInfoCenter is running under XWayland. :) If you can't figure it out yourself, I'd recommend either reaching out to your distro or posting at https://discuss.kde.org