Before that is finalized and flathub is updated, could you guys please test the builds? You find instructions how to get flatpak and flathub going on the flathub main site, and flathubbot is posting instructions on how to install the latest test build in the pull request discussion.
Things to know about flatpak: It has opinions Specifically, opinions on where applications should save their user data. Ours goes to ~/.var/app/org.armagetronad.ArmagetronAdvanced/ there. More specifically:
var data such as user.cfg goes to ~/.var/app/org.armagetronad.ArmagetronAdvanced/data/game/var
moviepacks are looked for in ~/.var/app/org.armagetronad.ArmagetronAdvanced/data/game
user configuration can go to ~/.var/app/org.armagetronad.ArmagetronAdvanced/config/game
the resource cache is in ~/.var/app/org.armagetronad.ArmagetronAdvanced/cache/resource
screenshots land in ~/.var/app/org.armagetronad.ArmagetronAdvanced/data/game/screenshot
I added the /game/ part to the paths because flatpak itself uses these directories itself and I want to avoid collisions. if you can think of better ways to distribute stuff over the data/config/cache subdirectories, I'm very open to suggestions.
The next thing to know about flatpak is that applications run in a sandbox. By default, we have access to the application specific directories above, and read only access to the game data, libraries and runtime. This is super neat! That means that if some remote code execution exploit is in our code, attackers are still trapped in the sandbox and don't get to your banking data immediately and can't encrypt your documents. They still get your saved tron passwords.
Unfortunately, that also means that debug recording and playback don't simply work. You need to give flatpak the appropriate permissions:
Code: Select all
flatpak run --filesystem=`pwd` org.armagetronad.ArmagetronAdvanced --record bug.aarec
flatpak run --filesystem=`readlink -f bug.aarec`:ro org.armagetronad.ArmagetronAdvanced --playback bug.aarec