Skip to content

games: dwarf-fortress: Initialize XDG_DATA_HOME if not set.

Artyom Bologov requested to merge aartaka/games:dwarf-fotress-xdg-home into master

This adds the XDG_DATA_HOME initialization if it appears to be undefined. This way one could escape malformed paths for the data folder of Dwarf Fortress.

Given that $HOME/.local/share is the conventional value of XDG_DATA_HOME, this change shouldn't cause any problem for most of users. Additionally, the variable gets reset after the end of wrapper-script. No shooting in the leg here, I believe :)

Closes: #38 (closed)

Merge request reports