--- usage: ---
emulationstation [--home path/to/home] [--romdir path/to/romdir]
This is a configuration wrapper around the real executable '/opt/batocera-emulationstation/bin/emulationstation'.
It is used to create and supply the custom configuration needed to make it multi-user capable.
This wrapper supports and uses all paths defined in 'common-paths'
--home and --romdir allow to override the paths used for ES_HOME and ROMS_ROOT_DIR respectively.
All (other) paths can be customized by supplying the corresponding environment variable.
(Directly retrieved from the executable’s help function)
Configuration wrapper around the ‘real’ executable of batocera-emulationstation (/opt/batocera-emulationstation/bin/emulationstation).
This script attempts to pre-configure emulationstation to roughly conform to XDG specifications.
How:
This script takes and passes through all arguments given to it. It behaves like an invisible proxy for the real executable that applies a bit of preconfiguration.
The call to the real executable will always be run with ‘–home homepath’ to get more control over the path. If ‘–home homedir’ is not given as argument to this script, it will be set to default /home/user. ES automatically assumes and creates a directory named ‘.emulationstation’ under homedir. The homedir given to ES is also used for ~ expansion in es_systems.cfg. If it was located under XDG_CONFIG_HOME, any path in es_systems.cfg using ~ would be resolved relative to XDG_CONFIG_HOME, which is not desirable and not the correct location for Roms. Thus, the default home must remain, but the subdir .emulationstation will instead by created as a link to XDG_CONFIG_HOME/emulationstation.
Broken examples of folder autodetect: a) /opt/batocera-emulationstation/emulationstation + /opt/batocera-emulationstation/emulationstation.ini expects folders named {log,music,saves,themes,decorations,shaders} and some more in either
Apart from the ini file and (optional) home adjustment, all arguments are passed to the real emulationstation binary as given to this script.
Please note that this script only works correctly under the assumption that there is no ‘default’ emulationstation.ini directly next to the binary in /opt/batocera-emulationstation because ES checks this location first. As it is a property file, paths containing ~ are possible, but no variables are expanded. Thus, no XDG env var would work here. And changing the system-owned read-only property file whenever a user starts ES is a bad idea.
Generated with shdoc