Proton does not work on second user with wayland, but does work with x11

I am running steam from a second gaming user while the main user is running KDE.

sudo su gaming
steam

This does work fine with native linux games but all proton games does crash without opening a window at all proton version.
Furthemore proton does work on the main user with wayland or at the gaming user with x11.
Only the second gaming user and wayland does not work.

Sadly I have no idea why this does happen.

steam output:

GameAction [AppID 1522820, ActionID 2] : LaunchApp changed task to ProcessingInstallScript with ""
fsync: up and running.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely
GameAction [AppID 1522820, ActionID 2] : LaunchApp changed task to SynchronizingCloud with ""
GameAction [AppID 1522820, ActionID 2] : LaunchApp changed task to SiteLicenseSeatCheckout with ""
GameAction [AppID 1522820, ActionID 2] : LaunchApp changed task to CreatingProcess with ""
GameAction [AppID 1522820, ActionID 2] : LaunchApp waiting for user response to CreatingProcess ""
GameAction [AppID 1522820, ActionID 2] : LaunchApp continues with user response "CreatingProcess"
/bin/sh\0-c\0/home/gaming/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=1522820 -- '/home/gaming/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/home/gaming/.local/share/Steam/steamapps/common/Proton 7.0'/proton waitforexitandrun  '/home/gaming/.local/share/Steam/steamapps/common/Orcs Must Die 3/Orcs Must Die! 3.exe'\0
Game process added : AppID 1522820 "/home/gaming/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=1522820 -- '/home/gaming/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/home/gaming/.local/share/Steam/steamapps/common/Proton 7.0'/proton waitforexitandrun  '/home/gaming/.local/share/Steam/steamapps/common/Orcs Must Die 3/Orcs Must Die! 3.exe'", ProcID 14345, IP 0.0.0.0:0
chdir /home/gaming/.local/share/Steam/steamapps/common/Orcs Must Die 3
ERROR: ld.so: object '/home/gaming/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
GameAction [AppID 1522820, ActionID 2] : LaunchApp changed task to WaitingGameWindow with ""
ERROR: ld.so: object '/home/gaming/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/gaming/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/gaming/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
GameAction [AppID 1522820, ActionID 2] : LaunchApp changed task to Completed with ""
ERROR: ld.so: object '/home/gaming/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
pid 14349 != 14346, skipping destruction (fork without exec?)
fsync: up and running.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely
ThreadGetProcessExitCode: no such process 14462
ThreadGetProcessExitCode: no such process 14460
ThreadGetProcessExitCode: no such process 14459
ThreadGetProcessExitCode: no such process 14458
ThreadGetProcessExitCode: no such process 14347
Game process updated : AppID 1522820 "/home/gaming/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=1522820 -- '/home/gaming/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/home/gaming/.local/share/Steam/steamapps/common/Proton 7.0'/proton waitforexitandrun  '/home/gaming/.local/share/Steam/steamapps/common/Orcs Must Die 3/Orcs Must Die! 3.exe'", ProcID 14461, IP 0.0.0.0:0
ThreadGetProcessExitCode: no such process 14465
Setting breakpad minidump AppID = 1522820
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198071957644 [API loaded no]
ThreadGetProcessExitCode: no such process 14532
ThreadGetProcessExitCode: no such process 14514
ThreadGetProcessExitCode: no such process 14505
ThreadGetProcessExitCode: no such process 14499
ThreadGetProcessExitCode: no such process 14493
ThreadGetProcessExitCode: no such process 14470
ThreadGetProcessExitCode: no such process 14467
ThreadGetProcessExitCode: no such process 14457
pid 14463 != 14462, skipping destruction (fork without exec?)
Game process removed: AppID 1522820 "/home/gaming/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=1522820 -- '/home/gaming/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/home/gaming/.local/share/Steam/steamapps/common/Proton 7.0'/proton waitforexitandrun  '/home/gaming/.local/share/Steam/steamapps/common/Orcs Must Die 3/Orcs Must Die! 3.exe'", ProcID 14461
ThreadGetProcessExitCode: no such process 14479
ThreadGetProcessExitCode: no such process 14461
ThreadGetProcessExitCode: no such process 14346
Game 1522820 created interface STEAMAPPLIST_INTERFACE_VERSION001 / AppList
Game 1522820 created interface STEAMAPPS_INTERFACE_VERSION008 / Apps
Game 1522820 created interface STEAMHTMLSURFACE_INTERFACE_VERSION_004 / HTMLSurface
Game 1522820 created interface STEAMHTTP_INTERFACE_VERSION002 / HTTP
Game 1522820 created interface STEAMINVENTORY_INTERFACE_V002 / Inventory
Game 1522820 created interface STEAMMUSICREMOTE_INTERFACE_VERSION001 / MusicRemote
Game 1522820 created interface STEAMMUSIC_INTERFACE_VERSION001 / Music
Game 1522820 created interface STEAMPARENTALSETTINGS_INTERFACE_VERSION001 / ParentalSettings
Game 1522820 created interface STEAMREMOTESTORAGE_INTERFACE_VERSION014 / RemoteStorage
Game 1522820 created interface STEAMSCREENSHOTS_INTERFACE_VERSION003 / Screenshots
Game 1522820 created interface STEAMUGC_INTERFACE_VERSION010 / UGC
Game 1522820 created interface STEAMUSERSTATS_INTERFACE_VERSION011 / UserStats
Game 1522820 created interface STEAMVIDEO_INTERFACE_V002 / Video
Game 1522820 created interface SteamController006 / Controller
Game 1522820 created interface SteamFriends015 / Friends
Game 1522820 created interface SteamMatchMaking009 / Matchmaking
Game 1522820 created interface SteamMatchMakingServers002 / MatchmakingServers
Game 1522820 created interface SteamNetworking005 / Networking
Game 1522820 created interface SteamUser019 / User
Game 1522820 created interface SteamUtils009 / Utils
Game 1522820 method call count for IClientAppManager::GetAppInstallState : 2
Game 1522820 method call count for IClientUtils::RecordSteamInterfaceCreation : 22
Game 1522820 method call count for IClientUtils::GetSteamUILanguage : 1
Game 1522820 method call count for IClientUtils::GetAppID : 24
Game 1522820 method call count for IClientUser::GetSteamID : 1
Uploaded AppInterfaceStats to Steam

Total random guess but maybe some system component are run by the user and the other user has issues because it is not its own session? Did you try a real session from the problematic user instead of using su?

Total random guess but maybe some system component are run by the user and the other user has issues because it is not its own session?

For pipewire I have created a config file:

$ cat .pulse/client.conf
default-server = 127.0.0.1

But I think issues like this would also appear with native Linux games.

Did you try a real session from the problematic user instead of using su?

This works fine. (after removing default-server from .pulse/client.conf)

A friend of mine uses a similar setup with sway. He uses this command cd /tmp && sudo -u gaming PULSE_SERVER=tcp:localhost:4713 STEAM_RUNTIME=0 steam from the main user and it works without any issue.

I noticed that I can get additional logs if I set the PROTON_LOG environment variable.

sadly it is too long to be posted here