gui: Enhance is available on Wayland sessions (it said Wayland capture was not built)

Run on Plasma 6.8 Wayland: Play on Voidrunner's page started summit run --enhance, the engine went over the
XWayland game, the portal save key wrote a clip, the monitor mode came back after the game.
This commit is contained in:
alex committed 2026-11-24 16:59:33 +00:00
1 parent 002246fbbf
commit e9d6aa6f8a
1 file changed
+2 -1
+2 -1
View File
@@ -221,8 +221,9 @@ impl App {
match launch::plan(e, self.cli().as_deref(), true) {
_ if launch::is_install(e) => (false, "Enhance needs the game installed.".to_string()),
launch::Plan::Unsupported(why) => (false, format!("Enhance is not available: {why}.")),
launch::Plan::Run(_) if session != display::Session::X11 => (false, format!("Enhance needs an X11 session; this is {session:?} (Wayland window capture is not built).")),
launch::Plan::Run(_) if session == display::Session::Unknown => (false, "Enhance needs a desktop session (X11 or Wayland); none was found.".to_string()),
launch::Plan::Run(_) if e.source == Source::Steam => (true, "Enhance: the engine waits for the window of class steam_app_<id> (Proton games) and runs on it until it closes. Not tested with a real Steam game yet.".to_string()),
launch::Plan::Run(_) if session == display::Session::Wayland => (true, "Enhance: frame generation and the upscaler from this game's profile run on its window, live, until either one exits. Wayland: XWayland games directly; a native Wayland game asks once to share its window.".to_string()),
launch::Plan::Run(_) => (true, "Enhance: frame generation and the upscaler from this game's profile run on its window, live, until either one exits.".to_string()),
}
}