Skip to content

Built application on Mac OS X can't find included ingredients.xml #10

@frankhmiv

Description

@frankhmiv

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:

  1. Fetch source from github
  2. Build it: "qmake ThreeBrooks.pro -r -spec macx-g++ CONFIG+=release; make"
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions