You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
KDE background click always refused on Fedora: kwin_wayland environ unreadable (cap_sys_nice) #498
On Fedora KDE, every background click (delivery: "background") is refused before any input is sent:
Nothing was sent: KWin's environment could not be read to rule out KWIN_WAYLAND_EMULATE_TABLET.
doctor reports background_pointer.available: true with routes kwin-pen and kwin-touch, and /dev/uinput is read/write for the user, so the only blocker is this check.
The user cannot read it, so the KWIN_WAYLAND_EMULATE_TABLET check fails closed on every Fedora KDE install (and probably on other distros that set cap_sys_nice on kwin_wayland).
Possible fix
When /proc/<pid>/environ is unreadable because of EACCES, fall back to other sources for the variable, for example:
systemctl --user show-environment (Plasma's startup puts the session environment there),
dbus-update-activation-environment / the D-Bus activation environment,
or the environment of plasmashell / startplasma-wayland, which are dumpable.
These do not prove what KWin itself saw, but a variable that would enable tablet emulation is normally set in the session environment before KWin starts, so it would show up there too. Maybe an opt-in env var like COMPUTER_USE_LINUX_ASSUME_NO_TABLET_EMULATION=1 would also work for users who know they never set it.
Environment
Fedora Linux 45 (KDE Plasma Desktop Edition), Wayland session
Activity
fix: read KWin tablet emulation env from wrapper, Xwayland, or system…