Well, from the bunch of information you provided about the rules OpenTTD uses in finding its data files, I've tried to sanitize the script:
- It now uses `openttd -h` output to determine whether or not some graphics set has been installed. It will only offer to install the TTDX data files if there is _no_ graphics set installed. - It will no longer try to detect music and SFX files. As `openttd -h` does not provide information on those, it assumes that if the graphics are not installed, neither are music and SFX. It tries to install them transparently if they are present in the folder selected as the source for the graphics files, and warns the user if they are missing. - Given that OpenTTD will not start without a sample.cat file, the script will just create an empty file if a source could not be found. - It now allows installing without administrative privileges to the user's home directory in addition to the existing method of installing to the openttd folder in the shared data directory. Regarding the dependency on ssft, it is a very small script [1] that is used to provide portable scriptable GUI services. It could easily be added to the openttd dependency list. [1]: http://packages.debian.org/lenny/ssft
openttd-start.sh
Description: application/shellscript