A Flatpak is You! KoL Mafia Flatpak.
Find a file
Bill Niblock 8e67d92017 Flatpak Package Data
Add files necessary for building a Flatpak of KoLmafia, except for the
actual Mafia JAR file.

The current instructions expect a file names `mafia.jar` present in the
same directory as `com.theinternetvagabond.kolmafia.yml` when the
Flatpak is built.

Instructions for building and installing, as well as building a
stand-alone `kolmafia.flatpak` artifact which can be installed, will be
included in a follow-up commit, or in the wiki of this repository.
2025-07-23 15:16:53 -04:00
.gitignore gitignore 2025-07-23 10:46:12 -04:00
com.theinternetvagabond.kolmafia.desktop Flatpak Package Data 2025-07-23 15:16:53 -04:00
com.theinternetvagabond.kolmafia.metainfo.xml Flatpak Package Data 2025-07-23 15:16:53 -04:00
com.theinternetvagabond.kolmafia.png Flatpak Package Data 2025-07-23 15:16:53 -04:00
com.theinternetvagabond.kolmafia.yml Flatpak Package Data 2025-07-23 15:16:53 -04:00
README.md Add README 2025-07-23 09:24:17 -04:00

Kingdom of Loathing Mafia Flatpak

This repository contains the necessary parts for building a Flatpak which contains OpenJRE and KoLmafia.

OpenJRE is provided by org.freedesktop.Sdk.Extension.openjdk21.

KoLmafia is "a cross-platform desktop tool which interfaces with the online adventure game Kingdom of Loathing." You can find more details about using the software on the KoLmafia Wiki.

Permissions

share=network: Mafia needs network access to access Kingdom of Loathing, and also to provide the local proxy for the relay browser.

socket=fallback-x11 and socket=wayland: These permit Mafia to display the application window.

persist=.kolmafia: This establishes a persistent storage location for Mafia between executions.

Storage

Persistent storage can be found in the following directory:

$HOME/.var/app/com.theinternetvagabond.KoLmafia/.kolmafia

This includes all preferences, caches, and additional files that Mafia will use.

Build Instructions

Run this command to fetch necessary dependencies and build the Flatpak locally:

flatpak-builder --force-clean --user --install-deps-from=flathub --repo=repo --install builddir com.theinternetvagabond.kolmafia

Running Instructions

To run, execute:

flatpak run com.theinternetvagabond.kolmafia