mirror of
https://github.com/swarm-game/swarm.git
synced 2024-08-16 18:10:23 +03:00
- when `datadir` is not available, try using the XDG data directory This way the game can be installed as an executable and data files unpacked to `~/.local/share/swarm/data`. Notice that the XDG data folder is `~/.local/share/swarm`; inside it is the unpacked `data`. The alternative approach is to use the environment variable `swarm_datadir` and set that to the unpacked data folder. That works (even after this change) but is not very beginner friendly. Ideally, we would like to set this in Cabal when building executable, for example to `/usr/share/swarm/<version>`. Reading through haskell/cabal#5997, it looks like that is not supported. |
||
---|---|---|
.. | ||
Main.hs |