OpenSkyscraper
OpenSkyscraper copied to clipboard
OpenSkyscraper expects SIMTOWER.EXE in cwd
Just something I noticed as i was packaging and testing my openskyscraper-git Arch Linux AUR package. I installed the OpenSkyscraper executable to /usr/bin/ and put SIMTOWER.EXE there as well. OpenSkyscraper failed to find the SIMTOWER.EXE resource. When I changed directory into /usr/bin, then it found the SIMTOWER.EXE resource.
It's easily worked around, but long-term we should look into a cross-platform location to put resources. Opening this issue as a discussion point.
At the moment, you should create a symlink next to the executable that points at the resources folder of the project. You may also put SIMTOWER.EXE or SIMTOWER.EX_ in there. I think we should have different locations for the resources for each platform. Mac OS X for example has a beautiful bundle architecture which we should make use of. I'm not sure how that stuff works on Linux, /usr/share maybe?
Thanks. :) I'm leaning towards a /usr/share/openskyscraper/ folder. Since I'd like to get openskyscraper running on as many Linuxes as I can, I'm going to double-check that /usr/share/openskyscraper is a good location for Ubuntu, RedHat/Fedora, OpenSUSE, etc. so I have to make as few use cases as possible in the packaging files. I'll post here once I've got more info.
If you really aren't sure, it's valid too to put it in /opt/openskyscraper .
/opt/openskyscraper
or /usr/share/openskyscraper
are both valid according to the Filsystem Hierarchy Standard. However, I would generally lean towards the latter, as that's where most programs tend to put things in my experience (ubuntu).
Of course, it would be even better if the icons were extracted from the executable and the icons themselves were put in one of those folders, as that would allow users to customize them. In order to get around the legal issues, you could have a shell script or program that extracts the icons from either SIMTOWER.EX_ or SIMTOWER.EXE into the prescribed directory.