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.
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.flatpakbundle (~87 KB) from thexmemlauncher-latestGitHub Release, verifies its SHA-256 checksum, and installsio.github.tim_van_oudheusden.Xmemlauncher(stable) for your user. - Only
flatpakis required (noflatpak-builderand no GNOME SDK — Flatpak automatically fetches theorg.gnome.Platform//51runtime from Flathub if needed). If offline andflatpak-builderis installed, the script falls back to building from source automatically. - Cleans up any prior
VictoryLauncheror legacymaster-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.flatpakbundle file (offline, noflatpak-builder)../install-launcher.sh --from-source— build and install locally fromlauncher/viaflatpak-builder(for local launcher development)../install-launcher.sh --make-bundle [path]— build a distributable.flatpakbundle and.sha256checksum../install-launcher.sh --repo /path/to/VIctory-xmem— record a specific repository checkout path../install-launcher.sh --check— verifyflatpak, 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 andrun.confuntouched).
Launch from your desktop application menu as Xmemlauncher, or from a terminal:
flatpak run --user io.github.tim_van_oudheusden.Xmemlauncher
Features
- Play, Stop & Live Logs (
Play & Status)- Starts the game with
./run.sh play(with an optional Run Stale Build fallback ifvictory.exepredatesHEAD). - Stops running sessions cleanly via
systemctl --user stop um-*.scopewith 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 tailslocal/run/last.log.
- Starts the game with
- Prepare & Build Workflow (
Prepare & Build)- Checks every prerequisite:
GAME=dump folder,deps/drivers & prefix,deps/fsr4/DLLs,victory.exefreshness (victory.sourcevsHEAD), shader translations, and warmed pipelines. - Runs
./setup.sh,./setup.sh fsr4,./build.sh build,./run.sh shaders, and./run.sh warmindividually or in sequence with live progress output. - Supports running
./setup.shand./build.shnatively on the host or inside a selecteddistroboxcontainer (for immutable distributions such as Bazzite, Silverblue, and SteamOS).
- Checks every prerequisite:
- Plain-English Settings Editor (
Game Settings)- Parses
run.conf.default,presets/*.conf, and your existingrun.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.confuntil you explicitly click Save to run.conf.
- Parses
- Shader & Pipeline Cache Status + Safe Pruning (
Shader & Pipeline Cache)- Shows binary build freshness, translated shader counts,
known-shaders.bin/known-pipelines.bin/native-id.binstatus, and everynative-*pipeline cache directory with.psocount 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.
- Shows binary build freshness, translated shader counts,
- 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).
- 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-remoteagainst 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).
- Checks at startup and automatically once every hour (plus a manual Check Now button) using read-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, andlspcion the host viaflatpak-spawn --host(always using argument lists, never--watch-bus).--filesystem=host— reads/editsrun.conf, inspectslocal/cache/andtarget/, reads Linux/sys/class/drmand/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 andgit ls-remoteupdate 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