flathub / flathub/com.github.iortcw.iortcw

Data migration when embracing USE_XDG=1

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
0
Forks
0
Avg merge
2h 53m
Merged PRs (30d)
1

Description

A careful study of the source code, revealed that there is an undocumented build-parameter called `USE_XDG=1` which does exactly what is says on the tin.

This is a bit inconvenient, since our current package relies on `+set fs_homepath ~/.var/app/com.github.iortcw.iortcw` to make sure that IORTCW writes to the right directory.

### Future change
```
# For historic reasons, single- and multiplayer are different binaries
- cd /run/build/iortcw-source/SP/ && USE_XDG=1 USE_INTERNAL_LIBS=0 COPYDIR=/app/bin/ make -j${FLATPAK_BUILDER_N_JOBS} copyfiles
- cd /run/build/iortcw-source/MP/ && USE_XDG=1 USE_INTERNAL_LIBS=0 COPYDIR=/app/bin/ make -j${FLATPAK_BUILDER_N_JOBS} copyfiles
```

### Impact
this moves the main from
`~/.var/app/com.github.iortcw.iortcw`
to
`~/.var/app/com.github.iortcw.iortcw/data/iortcw/main`

which is not insignificant. We'll have to see if this is worth the hassle. It will remove the dependency on `+set fs_homepath` though which might in the long run be beneficial.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.