there is some mistake in "/usr/portage/games-emulation/visualboyadvance/files/visualboyadvance" 1. after emerge, default config file for vba is /usr/share/games/VisualBoyAdvance/VisualBoyAdvance.cfg and not be /usr/games/share/VisualBoyAdvance/VisualBoyAdvance.cfg 2. we shouldn't do "cd ~/.${PN}" then 'exec ./${PN} "$@"', because "$@" may not include full path --------------- correct script: --------------- PN=VisualBoyAdvance if ! [ -d ~/.${PN}/save ]; then DIR=`pwd` mkdir -p ~/.${PN}/save cd ~/.${PN} ln -s `which ${PN}` . cp /usr/share/games/${PN}/${PN}.cfg . sed -i \ -e "s:#saveDir.*:saveDir ${HOME}/.${PN}/save:" \ -e "s:#captureDir.*:captureDir ${HOME}/.${PN}:" \ -e "s:#batteryDir.*:batteryDir ${HOME}/.${PN}/save:" \ ${PN}.cfg cd "$DIR" fi exec ~/.${PN}/${PN} "$@" Reproducible: Always Steps to Reproduce: 1. 2. 3.
Fixed the path in the wrapper. Not going to fix the cd ~/.${PN} part of the wrapper. That's needed for the executable to find the config file. You have to supply the full path for the roms.
in vba 1.7.1, after modify like 1st post, everything goes be fine. vba 1.7.1 searching config file in current dir, then home dir, otherwise using default. maybe we needn't do "ln -s `which ${PN}` ." in script, just 'exec ${PN} "$@"' is fine.
Created attachment 29671 [details] my version of the VBA wrapper This is my version of the VBA wrapper. I'm filing under this bug because it appears to resolve problem #2 described above, allowing relative paths to the ROM image to be used. This version of the wrapper also does the following: 1) Checks for the users config file seperately from the save directory allowing the user to easily rebuild it by removing the config and launching the wrapper. 2) Is more verbose, noting to the user a wrapper is being used and what is being done where.
Created attachment 29672 [details] re-attached as .gz file because firefox seems to hang when trying to download the original attachment.