Skip to content

Non-Steam shortcuts used to switch between Gaming Mode and Desktop Mode silently fail since the Nov 11 client update: launches run in a user namespace where sudo's setuid self-check fails #13953

Backlog

Description

@Amos-Huckleberry

Your system information

  • Steam client build: 1794536281 (steam_client_steamrt64, timestamped 2026-11-13 — the Nov 11 2026 client update)
  • Steam package: 1.0.0.87-3 (Arch package)
  • Distribution: Arch-based (Omarchy) on a Steam Deck OLED (AMD Van Gogh, AMD Custom APU 0405)
  • Kernel: 7.3.5-2-cachyos-deckify
  • Observed both from the desktop session (Hyprland/Wayland) and in Gaming Mode (gamescope)

Where this applies (not specific to this setup)

The sandboxed shortcut launch path is in the Steam client itself (the STEAM_LAUNCH_WRAPPER_SCOPE=1 launch wrapper and its user namespace), so the mechanism should not depend on this machine's specifics:

  • Not distro-specific — it should reproduce wherever the same Nov 11 2026 client build runs, on any distribution. Confirmation from other distros would be welcome.
  • Not gamescope-specific — the failure was measured launching the same shortcut from a plain desktop session (Hyprland) as well as inside gamescope.
  • Built-in switching is unaffected — the broken thing is the library-shortcut path. SteamOS's own "Switch to Desktop" power-menu entry and distro-provided menu/desktop entries do not go through library shortcuts, and still work. What fails is the shortcut path, which is the common DIY mechanism for session switching (and similar privileged helpers) on setups without that built-in integration — those shortcuts' commands typically need privilege escalation, exactly the class this update silently breaks. On the test system, both the built-in menu path and the (fixed) shortcut path were exercised the same day.
  • Not Deck-specific — any Linux Steam client ≥ the Nov 11 build with a non-Steam shortcut invoking a setuid binary (sudo, mount helpers, package helpers, …) should hit this.

Please describe your issue in as much detail as possible

Since the Nov 11 2026 client update, non-Steam-game library shortcuts are executed inside a user namespace, and any shortcut whose command calls a setuid binary such as sudo now fails — silently.

What a user sees: clicking Play on the shortcut flashes it as "running" for about one second, Steam removes the process, and the library shows "Play" again. No error dialog, no notification. The only trace is in ~/.local/share/Steam/logs/console-linux.txt and the journal:

sudo: /etc/sudo.conf is owned by uid 65534, should be 0
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

Diagnosis (measured by running a small diagnostic script as the shortcut, so the evidence comes from inside the launched process):

  • /proc/self/ns/user reports user:[4026532607] — a user namespace distinct from the host init namespace (user:[4026531837]). Before this client update, the same shortcut ran in the host namespace and sudo worked.
  • id inside the namespace: uid=1000 gid=1000 groups=1000,65534(nobody) — host root is unmapped, so host-root-owned files appear owned by 65534:
    • /usr/bin/sudo: mode 4755, owner uid 65534
    • /etc/sudo.conf: owner uid 65534
  • The shortcut environment contains STEAM_LAUNCH_WRAPPER_SCOPE=1, and the process runs in a transient systemd scope (app-steam-app<appid>-<pid>.scope).
  • The failure is sudo behaving correctly (its startup self-check requires root ownership, which is not mapped in the namespace) — but because Steam hides the process output, the whole thing looks like a dead Play button.

Impact: any non-Steam shortcut that needs privilege escalation silently does nothing. Common examples on Deck-like/HTPC setups: a library shortcut that runs sudo steamos-session-select desktop to leave Gaming Mode, helpers that mount something, etc. The same silent-failure behaviour presumably applies to anything else that fails inside the namespace, with no way for a user to learn why.

Steps for reproducing this issue

  1. Add a non-Steam game shortcut whose command is a script that runs sudo -n true (NOPASSWD sudoers entry, so no password prompt is involved)
  2. Click Play on the shortcut in the library
  3. It "runs" for ~1 s and stops; console-linux.txt shows the two sudo: ... uid 65534 lines; nothing else happens

(The sudo -n framing is just the minimal repro — the same failure hits any shortcut invoking a setuid binary.)

Expected behaviour

Either (a) non-Steam shortcut commands keep running in the host namespace as before the Nov 11 update, or (b) if the sandboxed launch wrapper is intentional, document it and surface the launch failure to the user (error dialog or notification naming the failed process) instead of a silent one-second flash.

Workaround that works

Handing the privileged work to the user's systemd manager — which lives outside the namespace — escapes the sandbox:

#!/bin/sh
# shortcut entry point; the sudoers rule grants NOPASSWD for the helper
exec systemd-run --user --collect --quiet sudo -n /usr/local/bin/deck-session-select gamescope

Related

Activity

  1. changed the title [-]Non-Steam game shortcuts silently fail when they invoke setuid binaries (sudo): shortcuts are launched inside a user namespace where sudo's ownership/setuid self-check fails[/-] [+]Non-Steam shortcuts used to switch between Gaming Mode and Desktop Mode silently fail since the Nov 11 client update: launches run in a user namespace where sudo's setuid self-check fails[/+] on Nov 26, 2026
  2. added
    non-Steam application
    on Nov 27, 2026
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

    non-Steam application

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions