Steam desktop UI on the desktop; Big Picture's Switch to Desktop works

- The front end's "Steam Desktop UI" started a Steam session without -gamepadui, and the client
  put itself into Big Picture under gamescope anyway. It now opens the desktop with Steam's
  desktop client started in it (BL_DESKTOP_STEAM, the desktop's autostart, the same
  bannerlator-steam-launch the menu's Steam entry uses).
- Big Picture's power menu "Switch to Desktop" runs steamos-session-select, which did not exist,
  so it sat on "Switching to Desktop..." for ever. The new stub leaves the app a request
  (session=desktop in the steam-launch file); the app ends the Steam session and starts the
  desktop with Steam's desktop client open.
This commit is contained in:
The412Banner committed 2026-09-25 08:59:06 -04:00
1 parent bbb95e8a60
commit 039948f4d2
5 files changed
+39 -3

No files matched your search

@@ -272,8 +272,11 @@ class MainActivity : ComponentActivity() {
),
FrontEndActions(
onPlay = { startSession(Intent(this, SessionActivity::class.java)) },
// Steam's desktop client as a window on the desktop: under gamescope the
// client puts itself into Big Picture whatever it is started with.
onPlayDesktopUi = {
startSession(Intent(this, SessionActivity::class.java)
.putExtra(SessionService.EXTRA_MODE, SessionService.MODE_DESKTOP)
.putExtra(SessionService.EXTRA_STEAM_UI, "desktop"))
},
onSteamGame = { g ->