fallout1-ce icon indicating copy to clipboard operation
fallout1-ce copied to clipboard

How to execute fallout-ce with no fallout.cfg passing the fallout folder as an argument

Open Kelvfimer opened this issue 1 year ago • 1 comments

Hello

I would like to execute fallout-ce on linux passing a folder that contains data folder, music folder, critterdat, fallout.cfg etc as an argument.

for example

fallout-ce /my/custom/falloutcepath/

is it possible?

thx

Kelvfimer avatar Sep 07 '23 11:09 Kelvfimer

Have a wrapper script do the cd and then exec. You can see below the subprocess starts in the new directory.

#!/usr/bin/env bash

d=$(mktemp -d)

cd $d

exec sh -c 'echo $PWD'
~ master*
❯ ./test.sh  
/tmp/tmp.RkyW0E3GgL

hughobrien avatar Sep 10 '23 20:09 hughobrien