Fix menu textures not displaying

This commit is contained in:
luk3yx 2019-02-16 19:53:02 +13:00
parent fd3cab2b66
commit c5ef23ac86

View File

@ -37,4 +37,12 @@ if [ ! -e "$SNAP_USER_DATA/.minetest" ]; then
ln -s . "$SNAP_USER_DATA/.minetest"
fi
# Make sure the base textures are linked
t="$SNAP_USER_DATA/textures/base"
s="$SNAP/share/minetest/textures/base"
if [ ! -e "$t/pack" ] || [ "$(readlink -m "$t")" != "$s" ]; then
mkdir -p "$SNAP_USER_DATA/textures"
ln -sf "$s" "$t"
fi
exec "$SNAP/bin/minetest" "$@"