lib dir problem

Bug reports and discussion about bugs.
Post Reply
Cyber
Posts: 2
Joined: Thu Nov 30, 2017 11:00 pm

lib dir problem

Post 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/?
mikaelh
Developer
Posts: 216
Joined: Sun Dec 13, 2009 3:18 pm

Re: lib dir problem

Post 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
Cyber
Posts: 2
Joined: Thu Nov 30, 2017 11:00 pm

Re: lib dir problem

Post 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.
Post Reply