Skip to content

feat(presets): generalize Flatpak/native detection for builtin launch presets#13

Merged
hikaps merged 1 commit intodevelopfrom
feat/command-check
Apr 26, 2026
Merged

feat(presets): generalize Flatpak/native detection for builtin launch presets#13
hikaps merged 1 commit intodevelopfrom
feat/command-check

Conversation

@hikaps
Copy link
Copy Markdown
Owner

@hikaps hikaps commented Apr 22, 2026

Summary

  • Generalize Flatpak vs native binary detection across all builtin launch presets (Steam, Heroic, Lutris), replacing the previous Heroic-only detection with a unified resolveLaunchCommand() helper in PresetManager
  • Add flatpakAppId and flatpakArgs fields to the LaunchPreset struct so each preset declares its Flatpak alternative, with full serialization and QML exposure
  • Cache resolved commands to ~/.config/couchplayrc with a 24h TTL to avoid repeated which/flatpak subprocess calls at startup
  • Add DualScope credit to README

Context

Previously only Heroic had Flatpak awareness for its launch command. Steam and Lutris presets hardcoded native commands (steam -tenfoot -steamdeck, lutris), which would fail on systems where only the Flatpak version is installed (common on Bazzite/immutable distros).

Changes

Preset Native command Flatpak fallback
Steam steam -tenfoot -steamdeck flatpak run com.valvesoftware.Steam -tenfoot -steamdeck
Heroic heroic flatpak run com.heroicgameslauncher.hgl
Lutris lutris flatpak run net.lutris.Lutris

Resolution priority: native first → Flatpak fallback → native as-is (graceful degradation).

Untouched

  • HeroicConfigManager config path detection and isFlatpak() display flag
  • SteamConfigManager config sync paths
  • CommandVerifier implementation
  • QML display logic

@hikaps hikaps force-pushed the feat/command-check branch from 6703b6a to 5564c47 Compare April 22, 2026 20:29
@hikaps hikaps force-pushed the feat/command-check branch from 5564c47 to 461b04b Compare April 26, 2026 06:16
@hikaps hikaps merged commit 86ae566 into develop Apr 26, 2026
1 check passed
@hikaps hikaps deleted the feat/command-check branch April 26, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant