Files
VIctory-xmem/launcher/README.md
Tim-van-Oudheusden ef4dcd6c7d feat(launcher): add saves folder shortcut and fix below-4K HUD guidance
Add an Open Folder button (and primary menu action) on Play & Status to
open local/data/7952987A/saves/0009000000000001/00000000-0000-0000-0000-00007952987a
in the host file manager (creating it if missing so saves can be imported
before first launch).

Fix Separate 4K HUD Plane (VICTORY_UI_PLANE) guidance:
- Replace the misleading Default (Auto) label with Default (Off) because
  unset VICTORY_UI_PLANE only activates at 1080p without host FSR.
- Show a one-click Enable 4K HUD banner in Game Settings whenever output is
  below 4K without VICTORY_UI_PLANE=3840x2160.
- Recommend VICTORY_UI_PLANE=3840x2160 in Hardware & Tuning for below-4K
  display profiles.

Verified with 34/34 launcher unit tests, Flatpak bundle rebuild, and
--smoke with zero warnings.
2026-12-06 02:15:40 +01:00

6.8 KiB

Xmemlauncher

Native GNOME / Libadwaita desktop launcher for your local VIctory-xmem checkout, packaged as a Flatpak (io.github.tim_van_oudheusden.Xmemlauncher on org.gnome.Platform//51).

Rather than bundling Mesa, vkd3d-proton, Proton, or the Rust toolchain inside the Flatpak, Xmemlauncher delegates directly to the scripts inside your VIctory-xmem repository (./run.sh, ./build.sh, ./setup.sh, git, and systemctl --user) via flatpak-spawn --host while reading and editing run.conf safely in place.

Install or Update

From your VIctory-xmem repository root (works both on a fresh clone and after git pull):

./install-launcher.sh
  • Downloads the prebuilt xmemlauncher-x86_64.flatpak bundle (~87 KB) from the xmemlauncher-latest GitHub Release, verifies its SHA-256 checksum, and installs io.github.tim_van_oudheusden.Xmemlauncher (stable) for your user.
  • Only flatpak is required (no flatpak-builder and no GNOME SDK — Flatpak automatically fetches the org.gnome.Platform//51 runtime from Flathub if needed). If offline and flatpak-builder is installed, the script falls back to building from source automatically.
  • Cleans up any prior VictoryLauncher or legacy master-branch Flatpak install automatically so there are no duplicate app-menu entries.
  • Records your repository folder in ~/.config/xmemlauncher/launcher.json (preserving/migrating any prior launcher preferences).
  • Never overwrites, creates, or alters an existing run.conf.

Useful flags:

  • ./install-launcher.sh --bundle /path/to/xmemlauncher-x86_64.flatpak — install from a local .flatpak bundle file (offline, no flatpak-builder).
  • ./install-launcher.sh --from-source — build and install locally from launcher/ via flatpak-builder (for local launcher development).
  • ./install-launcher.sh --make-bundle [path] — build a distributable .flatpak bundle and .sha256 checksum.
  • ./install-launcher.sh --repo /path/to/VIctory-xmem — record a specific repository checkout path.
  • ./install-launcher.sh --check — verify flatpak, runtime, and release bundle URL without modifying anything.
  • ./install-launcher.sh --build-only — test-build from source into ${XDG_CACHE_HOME:-$HOME/.cache}/xmemlauncher-flatpak/ without installing.
  • ./install-launcher.sh --uninstall — remove the user Flatpak (leaving your repo and run.conf untouched).

Launch from your desktop application menu as Xmemlauncher, or from a terminal:

flatpak run --user io.github.tim_van_oudheusden.Xmemlauncher

Features

  1. Play, Stop & Live Logs (Play & Status)
    • Starts the game with ./run.sh play (with an optional Run Stale Build fallback if victory.exe predates HEAD).
    • Stops running sessions cleanly via systemctl --user stop um-*.scope with child termination fallback.
    • Detects sessions started outside Xmemlauncher (polling um-*.scope), provides a one-click Open Folder shortcut to the saves & profile directory (local/data/7952987A/saves/...), and streams live output or tails local/run/last.log.
  2. Prepare & Build Workflow (Prepare & Build)
    • Checks every prerequisite: GAME= dump folder, deps/ drivers & prefix, deps/fsr4/ DLLs, victory.exe freshness (victory.source vs HEAD), shader translations, and warmed pipelines.
    • Runs ./setup.sh, ./setup.sh fsr4, ./build.sh build, ./run.sh shaders, and ./run.sh warm individually or in sequence with live progress output.
    • Supports running ./setup.sh and ./build.sh natively on the host or inside a selected distrobox container (for immutable distributions such as Bazzite, Silverblue, and SteamOS).
  3. Plain-English Settings Editor (Game Settings)
    • Parses run.conf.default, presets/*.conf, and your existing run.conf.
    • Scales setting cards proportionally with the window size (small, windowed, or maximized) and keeps selected values on the right side concise and un-truncated while showing full plain-English tradeoff details inside each dropdown popover.
    • Surfaces one-click companion banners when Frame Generation needs companion settings or when running below 4K without Separate 4K HUD Plane (3840x2160) enabled.
    • Preserves all comments, blank lines, ordering, custom values, and unknown variables verbatim; never touches run.conf until you explicitly click Save to run.conf.
  4. Shader & Pipeline Cache Status + Safe Pruning (Shader & Pipeline Cache)
    • Shows binary build freshness, translated shader counts, known-shaders.bin / known-pipelines.bin / native-id.bin status, and every native-* pipeline cache directory with .pso count and disk usage.
    • Always marks and protects the active pipeline cache folder from deletion, refuses pruning while the game or warming is active, and shows an explicit confirmation listing exact folders and GiB to be freed.
  5. Hardware Detection & Strictly Opt-In Tuning (Hardware & Tuning)
    • Detects GPU model/architecture (AMD RDNA 2 / RDNA 3 / RDNA 4, NVIDIA, Intel), VRAM size, Resizable BAR status, CPU model/cores (including Ryzen X3D and 5800X3D detection), total system RAM, and display resolution.
    • Offers side-by-side hardware-tailored recommendations with plain-English explanations and explicit Apply Selected or Decline & Keep Current buttons (declining persists per hardware profile so it never nags or overrides your settings).
  6. Non-Destructive Update Checker (Startup + Hourly)
    • Checks at startup and automatically once every hour (plus a manual Check Now button) using read-only git ls-remote against your remote tracking branch.
    • Never mutates your working tree or run.conf. When behind, offers an optional clean fast-forward pull (git pull --ff-only).

Flatpak Permissions

Because Xmemlauncher executes your local repository's build and run scripts on the host rather than bundling the graphics/build stack, its Flatpak manifest requests:

  • --talk-name=org.freedesktop.Flatpak — runs ./run.sh, ./build.sh, ./setup.sh, git, systemctl --user, distrobox, vulkaninfo, and lspci on the host via flatpak-spawn --host (always using argument lists, never --watch-bus).
  • --filesystem=host — reads/edits run.conf, inspects local/cache/ and target/, reads Linux /sys/class/drm and /proc, and stores launcher-only preferences in ~/.config/xmemlauncher/launcher.json.
  • --share=network, --socket=wayland, --socket=fallback-x11, --share=ipc, --device=dri — standard desktop UI and git ls-remote update check.

Running Unit Tests

All core logic lives in launcher/victory_launcher/core/ with zero GTK dependencies and runs headlessly with the Python standard library:

PYTHONPATH=launcher python3 -m unittest discover -s launcher/tests -v