I run a plasma wayland desktop which is started from VT1 with dbus-run-session -- startplasma-wayland I have a dedicated user for steam games. Previously I could run X11 apps as this user within the main wayland display. But after recently updating kde-plasma/ packages (kwin, plasma-workspace, etc.) to 5.22.5 this now fails to share the display. $ xhost +SI:localuser:steam localuser:steam being added to access control list $ sudo -u steam glxinfo Password: Error: unable to open display :0 ---------------- I tried setting various environment variables like DISPLAY WAYLAND_DISPLAY XAUTHORITY XDG_RUNTIME_DIR. I tried tweaking the runtime dir permissions. chmod -R go+rw /run/user/1000 # insecure - don't actually do this Also tried adding pam_xauth module. echo "session optional pam_xauth.so" >> /etc/pam.d/sudo But none of this helped. ---------------- As a workaround I can switch to VT2 and start a separate wayland display as the other user. Reproducible: Always Steps to Reproduce: dbus-run-session -- startplasma-wayland xhost +SI:localuser:steam sudo -u steam glxinfo Actual Results: Error: unable to open display :0 Expected Results: normal output of glxinfo Portage 3.0.20 (python 3.9.6-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-10.3.0, glibc-2.33-r1, 5.10.61-gentoo x86_64) ================================================================= System uname: Linux-5.10.61-gentoo-x86_64-Intel-R-_Core-TM-_i7-6700HQ_CPU_@_2.60GHz-with-glibc2.33 KiB Mem: 16225776 total, 10303948 free KiB Swap: 8388604 total, 8388604 free Timestamp of repository gentoo: Sun, 19 Sep 2021 13:51:31 +0000 Head commit of repository gentoo: 332446fa35e942c5e201f6f9d74867faaa0546b3 Head commit of repository overboard: 34d3df35d1c2e2b0ed02abc54d082ea5dfda557e Head commit of repository steam-overlay: d90ce0627d7c30027f4971dce6f67f22abd71e6d sh bash 5.1_p8 ld GNU ld (Gentoo 2.36.1 p5) 2.36.1 ccache version 4.3 [enabled] app-shells/bash: 5.1_p8::gentoo dev-lang/perl: 5.34.0-r2::gentoo dev-lang/python: 3.9.6_p2::gentoo dev-lang/rust: 1.53.0::gentoo dev-util/ccache: 4.3-r3::gentoo dev-util/cmake: 3.20.5::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/sandbox: 2.24::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.16.4::gentoo sys-devel/binutils: 2.36.1-r2::gentoo sys-devel/gcc: 10.3.0-r2::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r1::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo priority: -1000 overboard location: /var/db/repos/overboard sync-type: git sync-uri: https://github.com/piedar/overboard masters: gentoo steam-overlay location: /var/db/repos/steam-overlay sync-type: git sync-uri: https://github.com/anyc/steam-overlay masters: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--jobs=12 --load-average=10 --keep-going" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-march=native -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en_US" MAKEOPTS="--jobs=12 --load-average=12" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/tmp" USE="aac acl acpi activities alsa amd64 bluetooth branding bzip2 cdr cli crypt dbus declarative dri dts dvdr emboss encode exif ffmpeg flac gdbm gif git gpm gui iconv icu ipv6 jpeg kde kipi kwallet lcms libglvnd libtirpc lto mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl offensive ogg opengl openmp pam pango pcre pdf plasma png policykit ppds pulseaudio qml qt5 readline seccomp smp spell split-usr ssl startup-notification system-ffmpeg system-icu systemd tcpd threads tiff truetype udev udisks unicode upower usb vaapi vorbis wayland widgets wifi x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput synaptics" KERNEL="linux" L10N="en_US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="intel i965 nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Please consider reporting this bug upstream.
Found this upstream bug - https://bugs.kde.org/show_bug.cgi?id=442362
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8a6ce0f6db9297cb47efccfe21555e9706e424c commit d8a6ce0f6db9297cb47efccfe21555e9706e424c Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2021-11-15 14:13:15 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2021-11-23 14:59:13 +0000 kde-plasma/kwin: Fix XWayland abstract socket address Upstream commit 5a9a3e96898bd29ccbf31d9ff92dfb80274ce265 KDE-bug: https://bugs.kde.org/show_bug.cgi?id=442362 Reported-by: Benn Snyder <benn.snyder@gmail.com> Bug: https://bugs.gentoo.org/813888 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> ...-5.23.3-fix-xwayland-abstract-socket-addr.patch | 49 ++++++++ kde-plasma/kwin/kwin-5.23.3-r1.ebuild | 138 +++++++++++++++++++++ 2 files changed, 187 insertions(+)
Nice! The patch also applies successfully to kwin-5.22.5 if you remove lib/ from the path. Here's a patch for the patch :) diff --git a/var/db/repos/gentoo/kde-plasma/kwin/files/kwin-5.23.3-fix-xwayland-abstract-socket-addr.patch b/etc/portage/patches/kde-plasma/kwin-5.22.5/kwin-5.22.5-fix-xwayland-abstract-socket-addr.patch index 7cd8d13..adb55d4 100644 --- a/var/db/repos/gentoo/kde-plasma/kwin/files/kwin-5.23.3-fix-xwayland-abstract-socket-addr.patch +++ b/etc/portage/patches/kde-plasma/kwin-5.22.5/kwin-5.22.5-fix-xwayland-abstract-socket-addr.patch @@ -13,13 +13,13 @@ BUG: 442362 (cherry picked from commit 83a036e9d40475d5c07177bf2e8bba9bc0fd4aa5) --- - src/xwl/lib/xwaylandsocket.cpp | 9 ++++----- + src/xwl/xwaylandsocket.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) -diff --git a/src/xwl/lib/xwaylandsocket.cpp b/src/xwl/lib/xwaylandsocket.cpp +diff --git a/src/xwl/xwaylandsocket.cpp b/src/xwl/xwaylandsocket.cpp index 786ab5cbbf..7cf9310584 100644 ---- a/src/xwl/lib/xwaylandsocket.cpp -+++ b/src/xwl/lib/xwaylandsocket.cpp +--- a/src/xwl/xwaylandsocket.cpp ++++ b/src/xwl/xwaylandsocket.cpp @@ -42,19 +42,18 @@ UnixSocketAddress::UnixSocketAddress(const QString &socketPath, Type type) const QByteArray encodedSocketPath = QFile::encodeName(socketPath);