fix: a game with a launch-option picker is no longer closed while the picker is open (MK11) (#1869)

fix: a game with a launch-option picker is no longer closed while the picker is open
This commit is contained in:
MaxsTechReview authored and GitHub committed 2026-10-30 18:16:11 -04:00
1 parent 484afffffd
commit 7e47db2e2a
4 files changed
+58 -15

No files matched your search

@@ -111,10 +111,7 @@ object AutoComponents {
@VisibleForTesting internal var gameRunning: () -> Boolean = { gameProcessRunning() }
private fun gameProcessRunning(): Boolean = File("/proc").listFiles()?.any { p ->
p.name.all(Char::isDigit) && runCatching { String(File(p, "cmdline").readBytes()).replace('\u0000', ' ') }.getOrNull()
?.let { it.contains("SteamLaunch AppId=") || it.contains("proton waitforexitandrun") } == true
} == true
private fun gameProcessRunning(): Boolean = com.droiddeck.launcher.session.SteamGameProcess.running()
fun queueInSession(context: Context, game: Library.SteamGame) {
if (appKey(game) == null) return