Remnants of the Precursors is a FOSS modernization of the game Master of Orion. Link: Remnants of the Precursors by Ray Fowler
So this is the file structure when the game runs:
folder/Remnants.jar
folder/Remnants.cfg
folder/savefile1.rotp
folder/backup/game3_turn32.rotp
Thus you get the idea, the game saves user configuration and savefiles in its own parent folder
Can someone help out, please. This is as far as I’ve gotten:
folder/Remnants.jar
folder/Remnants.sh
#!/bin/sh
java -jar /app/share/Remnants.jar
folder/org.example.ROTP.yml
app-id: org.example.ROTP
runtime: org.freedesktop.Platform
runtime-version: "21.08"
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.openjdk17
command: Remnants.sh
modules:
- name: openjdk
buildsystem: simple
build-commands:
- /usr/lib/sdk/openjdk17/install.sh
- name: rotp-sh
buildsystem: simple
build-commands:
- install -D Remnants.sh /app/bin/Remnants.sh
sources:
- type: file
path: Remnants.sh
- name: rotp
buildsystem: simple
build-commands:
- install -D Remnants.jar /app/share/Remnants.jar
sources:
- type: file
path: Remnants.jar
finish-args:
- --env=PATH=/app/jre/bin:/app/bin
- --share=ipc
- --socket=x11
- --socket=wayland
The issue obviously is that /app/share/ is sandboxed to be read-only right now. Is it feasible to use $XDG_DATA_HOME ?
The game is highly polished in my opinion, will be a nice addition on flathub in my opinion