Crash on launch of v0.40 under macOS Sierra
After updating to v0.40 of OpenMW under macOS 10.11 (Sierra), the game now crashes on launch with the following error message:
Could not find settings-default.cfg
The problem may be due to an incomplete installation of OpenMW. Reinstalling OpenMW may resolve the problem.
This may be a result of a new security feature of 10.11 -- Gatekeeper Path Randomization (for more info: http://weblog.rogueamoeba.com/2016/06/29/sierra-and-gatekeeper-path-randomization/). The app may be looking for the settings-default.cfg file that lives in the same directory via a relative path lookup, which may cause this issue (https://github.com/OpenMW/openmw/blob/master/apps/launcher/maindialog.cpp#L385 and https://github.com/OpenMW/openmw/blob/7a389f7ab117acad15d813a33f63877f45da98ef/components/files/macospath.cpp#L69). Idiomatically, any files like settings-default.cfg, gamecontrollerdb.txt, and openmw.cfg (as well as the entire resources folder) should live inside the app bundle itself (loaded using some OS-specific code here: http://stackoverflow.com/questions/24165681/accessing-files-in-resources-folder-in-mac-osx-app-bundle) and user-specific versions should live in ~/Library/Preferences/openmw or ~/Library/Application Support/openmw.
Moving the app bundle from it's current path (after first launch) is enough to workaround this issue.
(RM-3582 from redmine: created on 2016-10-06 by Andrew Scagnelli, , closed on 2016-10-06 by nobody, duplicates #3566 (closed))