Page 1 of 1

lib dir problem

Posted: Mon Dec 04, 2017 9:27 pm
by Cyber
I want to make a package of TomeNET for NixOS but it appears the binary that is being build by the source expects one to have lib/ in his current directory. Is there any way to use another location? I could make a wrapper that copies lib/ to an users home directory if the lib needs to get written to, or just keep it in a system path and refer TomeNET to that if TomeNET only needs read access.

So is it possible to make TomeNET look somewhere else than the current directory for lib/?

Re: lib dir problem

Posted: Mon Dec 04, 2017 10:16 pm
by mikaelh
The game does need to write to the lib directory. You can change the path by setting the TOMENET_PATH environment variable:

export TOMENET_PATH=${HOME}/.tomenet/lib
./tomenet

Or by using a command line switch:

./tomenet -P${HOME}/.tomenet/lib

Re: lib dir problem

Posted: Tue Dec 05, 2017 10:58 am
by Cyber
Thanks, I got it working. Tomenet just needs a wrapper script that takes care of copying over the lib and starting tomenet properly.