first change is because if game runned from terminal, it runs without environment variables set in .desktop file, and continues to crash