Windows seats: Steam on the PC and on a seat close each other, and a running seat Steam takes no links #1873

Open
opened 2026-10-13 21:27:07 +00:00 by enricobuehler · 0 comments
Owner

On a Windows box with seats on, each seat runs its own copy of Steam under -master_ipc_name_override pfseat<id>, and the PC's Steam keeps the default name (pf-seats/src/steam.rs). Two things that design relies on do not hold on Steam client build 1788652215.

What a player sees

  1. Starting Steam on the PC closes a seat's Steam. The seat's bootstrap_log.txt logs Shutdown in the same second. Starting the seat's Steam again afterwards works, and both then run. The only order that coexists is PC first, seat second.
  2. With both running, a Steam link opened on the PC closes the PC's Steam. steam.exe steam://open/downloads in the PC's session: its Steam shuts down within two seconds and nothing takes its place. The seat's Steam survives. 2 of 2 tries.
  3. A running seat Steam can't be reached. The Steam shortcut on the seat, a steam:// link, and a title launched from a client's library all start "<copy>\steam.exe" -master_ipc_name_override pfseat<id> …. That process never exits and nothing happens on screen. Each click leaves another one behind. Reopening works only from Steam's own tray icon.

Measured

  • Steam's master IPC objects are per session whatever the name: Steam3Master_SharedMemFile in the PC's session, pfseat<id>_SharedMemFile in the seat's. Machine-wide there is one event, Global\Valve_SteamIPC_Class, and the Steam Client Service's shared memory.
  • A start under the default name finds any running Steam on the machine, named or not. What it does next follows the machine-wide InstallPath (HKLM SOFTWARE\WOW6432Node\Valve\Steam), which a seat's copy rewrites to itself on every start:
    • InstallPath on the seat's copy: the newcomer closes the seat's Steam and starts. That is symptom 1.
    • InstallPath put back on the PC's install: the newcomer hands -foreground to the seat's client, across sessions, and exits. The seat's console_log.txt shows ExecCommandLine: ""C:\Program Files (x86)\Steam\steam.exe" -foreground". The PC's Steam never starts.
  • A start under an IPC name skips that check, so it closes nobody. It also never hands its command line to a running client of the same name. A debugger on the stuck process shows a full client: steamui loaded, main thread in a sleep loop, holding the same pfseat<id>_SharedMem* objects as the running one.

So the name protects a seat's Steam from other named starts only, and costs it Steam's own hand-off.

Does not fix it

  • Keeping InstallPath on the PC's install: the PC's Steam then can't start while a seat's runs.
  • Starting the PC's Steam under a name too: nothing closes anything, but the PC's links and shortcut clicks then hang like the seat's.

Until fixed

  • Start Steam on the PC before any seat's.
  • On a seat, reopen Steam from its tray icon.
  • With a seat's Steam running, don't open Steam links or the Steam shortcut on the PC.

Direction

Every Steam on a box with seats would start under a name, the PC's included, with every entry point going through our own launcher. punktfunk-tray --steam already fronts the shared shortcuts. The launcher then has to do the hand-off Steam no longer does: start Steam with the link when it is not running, and reach the running client some other way when it is. That second half is unsolved and needs a spike first.

Code that assumes the hand-off: seat_steam_cmdline in punktfunk-host/src/library/launch/windows.rs, the seat's steam:// handler and autostart in pf-seats/src/windows/steam.rs, and punktfunk-tray/src/steam.rs.

Where

Found while testing #1872. Windows 11 behind a session wrapper, one seat signed in to Steam with a second account, the PC's Steam signed in with the owner's.

On a Windows box with seats on, each seat runs its own copy of Steam under `-master_ipc_name_override pfseat<id>`, and the PC's Steam keeps the default name (`pf-seats/src/steam.rs`). Two things that design relies on do not hold on Steam client build 1788652215. ## What a player sees 1. **Starting Steam on the PC closes a seat's Steam.** The seat's `bootstrap_log.txt` logs `Shutdown` in the same second. Starting the seat's Steam again afterwards works, and both then run. The only order that coexists is PC first, seat second. 2. **With both running, a Steam link opened on the PC closes the PC's Steam.** `steam.exe steam://open/downloads` in the PC's session: its Steam shuts down within two seconds and nothing takes its place. The seat's Steam survives. 2 of 2 tries. 3. **A running seat Steam can't be reached.** The Steam shortcut on the seat, a `steam://` link, and a title launched from a client's library all start `"<copy>\steam.exe" -master_ipc_name_override pfseat<id> …`. That process never exits and nothing happens on screen. Each click leaves another one behind. Reopening works only from Steam's own tray icon. ## Measured - Steam's master IPC objects are per session whatever the name: `Steam3Master_SharedMemFile` in the PC's session, `pfseat<id>_SharedMemFile` in the seat's. Machine-wide there is one event, `Global\Valve_SteamIPC_Class`, and the Steam Client Service's shared memory. - A start under the default name finds any running Steam on the machine, named or not. What it does next follows the machine-wide `InstallPath` (HKLM `SOFTWARE\WOW6432Node\Valve\Steam`), which a seat's copy rewrites to itself on every start: - `InstallPath` on the seat's copy: the newcomer closes the seat's Steam and starts. That is symptom 1. - `InstallPath` put back on the PC's install: the newcomer hands `-foreground` to the seat's client, across sessions, and exits. The seat's `console_log.txt` shows `ExecCommandLine: ""C:\Program Files (x86)\Steam\steam.exe" -foreground"`. The PC's Steam never starts. - A start under an IPC name skips that check, so it closes nobody. It also never hands its command line to a running client of the same name. A debugger on the stuck process shows a full client: `steamui` loaded, main thread in a sleep loop, holding the same `pfseat<id>_SharedMem*` objects as the running one. So the name protects a seat's Steam from other named starts only, and costs it Steam's own hand-off. ## Does not fix it - Keeping `InstallPath` on the PC's install: the PC's Steam then can't start while a seat's runs. - Starting the PC's Steam under a name too: nothing closes anything, but the PC's links and shortcut clicks then hang like the seat's. ## Until fixed - Start Steam on the PC before any seat's. - On a seat, reopen Steam from its tray icon. - With a seat's Steam running, don't open Steam links or the Steam shortcut on the PC. ## Direction Every Steam on a box with seats would start under a name, the PC's included, with every entry point going through our own launcher. `punktfunk-tray --steam` already fronts the shared shortcuts. The launcher then has to do the hand-off Steam no longer does: start Steam with the link when it is not running, and reach the running client some other way when it is. That second half is unsolved and needs a spike first. Code that assumes the hand-off: `seat_steam_cmdline` in `punktfunk-host/src/library/launch/windows.rs`, the seat's `steam://` handler and autostart in `pf-seats/src/windows/steam.rs`, and `punktfunk-tray/src/steam.rs`. ## Where Found while testing #1872. Windows 11 behind a session wrapper, one seat signed in to Steam with a second account, the PC's Steam signed in with the owner's.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unom/punktfunk#1873