Skip to content

KDE background click always refused on Fedora: kwin_wayland environ unreadable (cap_sys_nice) #498

Closed

Description

@SlawekKop

What happens

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.

Why

Fedora ships kwin_wayland with a file capability:

$ getcap /usr/bin/kwin_wayland
/usr/bin/kwin_wayland cap_sys_nice=ep

A process started from a binary with file capabilities is not dumpable, so its /proc/<pid>/environ is owned by root and mode 0400:

$ ls -la /proc/$(pgrep -x kwin_wayland)/environ
-r--------. 1 root root 0 ... /proc/2718/environ

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
  • KWin 6.8.3
  • computer-use-linux 0.7.59, Claude Code plugin

Activity

  1. added a commit that references this issue on Nov 23, 2026
    3aed969
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions