fix_arma3.sh 620 B

12345678910111213141516
  1. #!/bin/bash
  2. # LinuxGSM fix_arma3.sh module
  3. # Author: Daniel Gibbs
  4. # Contributors: https://linuxgsm.com/contrib
  5. # Website: https://linuxgsm.com
  6. # Description: Resolves issues with ARMA3.
  7. moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
  8. # Fixes: 20150 Segmentation fault (core dumped) error.
  9. if [ ! -d "${XDG_DATA_HOME:="${HOME}/.local/share"}/Arma 3" ] || [ ! -d "${XDG_DATA_HOME:="${HOME}/.local/share"}/Arma 3 - Other Profiles" ]; then
  10. fixname="20150 Segmentation fault (core dumped)"
  11. fn_fix_msg_start
  12. mkdir -p "${XDG_DATA_HOME:="${HOME}/.local/share"}/Arma 3 - Other Profiles"
  13. fn_fix_msg_end
  14. fi