Currently when Oolite is installed to the system, its Resources folder
must be in the bin folder for the game to work (eg. /usr/bin/Resources,
/usr/local/bin/Resources). This is not correct for a Linux system where
app resources should go into share (eg. /usr/share/oolite/Resources,
/usr/local/share/oolite/Resources). I have looked at the filesystem
layouts documentation but I don't understand what I need to do.
I have successfully relocated the GNUstep and user defaults folders
using a custom GNUstep.conf. I managed to get Oolite to look for its
resources in |<executable location>/../share/oolite/Resources| if
|<executable location>/Resources| does not exist, but then
|Info-gnustep.plist| is not found. The branch where I am trying to get
this to work is:
https://github.com/mcarans/oolite/tree/meson_share_resources
Besides |Info-gnustep.plist|, is there anything else GNUstep itself
looks for in Resources?
How can I get it to look in |<executable
location>/../share/oolite/Resources| instead?
We have moved to meson from make files. I run meson setup and compile
steps to get |<project repo>/build/meson_snapshot/oolite.app|. When
running the binary from there, it is fine to use Resources in the same
folder.
I then run |meson install -C build/meson_snapshot --destdir /tmp/test.
|That installs to |/tmp/test| so the binary is in
|/tmp/test/bin/oolite|. When running the binary from there,
|/tmp/test/share/oolite/Resources| should be used as the parent folder
for |Info-gnustep.plist| (mirroring what would happen if I installed to
an actual system folder like |/usr| or /usr/local).
I've also documented this in a ticket:
https://github.com/gnustep/tools-make/issues/73
Your help would be greatly appreciated!
Thanks,
Mike