I tried installing Panda3D 1.6.2 to ~/programs/ instead of /Applications/, but when I tried running the sample programs, it would not run. After some tinkering, I’d get it to run iff I copied my Config.prc to /Applications/Panda3D/1.6.2/etc. Without looking at the source, it looks like the config file is hard coded with an absolute path.
Could the Config.prc file be referenced with a relative (to the bundle) path?
I’m not a Mac dev, so I don’t know the ‘proper’ way of doing it. I’d assume there’s an ‘official’ method to source files based on the package location, but that’s an assumption.
On a related note, if a full port was to be made, I suspect the config file would end up as a plist somewhere (/Library? ~/Library?). But again, not a mac dev (yet).
Only things I could find in a quick search are:
http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPFileSystem/Articles/WhereToPutFiles.html#//apple_ref/doc/uid/TP400
http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPFileSystem/Articles/LibraryDirectory.html#//apple_ref/doc/uid/20002282-BAJHCHJI01411-BAJHCHJI
http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPRuntimeConfig/000-Introduction/introduction.html
http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/ConfigApplications.html#//apple_ref/doc/uid/20002094-BBCJBHHE
Thanks,
Christian.