-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Summary: After building the app on Mac OS X and launching it, the ingredients sections are all empty, even though I can see the ingredients.xml file has ingredients.
Reproduce:
- Fetch source from github
- Build it: "qmake ThreeBrooks.pro -r -spec macx-g++ CONFIG+=release; make"
- Run it: "open ThreeBrooks.app"
Expected results: Ingredients sections contain ingredients from ingredients.xml
Actual results: All ingredients sections are empty
Workaround: QApplication::applicationDirPath() returns the directory inside an app bundle that contains the executable. Copy ingredients.xml to ThreeBrooks.app/Contents/MacOS and re-launch the app. This probably isn't the right long-term solution as it's not the Mac Way to store run-time data in the app bundle. We have ~/Library/Application Support/ for that. QDesktopServices::storageLocation() might be a better location for the ingredients on the Mac