First Steam session: Play sends no mode, and no mode is Steam - seed the Proton then too

This commit is contained in:
The412Banner committed 2026-09-26 15:44:20 -04:00
1 parent dcbfc0bb06
commit bc2d85d496
1 file changed
+1 -1
@@ -237,7 +237,7 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
val needRuntime = com.droiddeck.launcher.runtime.LinuxRuntimeInstaller.installedVersion(this) == null
val needDesktop = intent.getStringExtra(SessionService.EXTRA_MODE) == SessionService.MODE_DESKTOP &&
!com.droiddeck.launcher.runtime.DesktopCatalog.desktopInstalled(this)
val needProton = intent.getStringExtra(SessionService.EXTRA_MODE) == SessionService.MODE_STEAM &&
val needProton = (intent.getStringExtra(SessionService.EXTRA_MODE) ?: SessionService.MODE_STEAM) == SessionService.MODE_STEAM &&
com.droiddeck.launcher.runtime.DesktopCatalog.protonSeedNeeded(this)
if (needRuntime || needDesktop || needProton) installThenStart(needRuntime, needDesktop, needProton)
}