Closed Vimos closed 6 years ago
The pack sets both the LOGTALKHOME
and LOGTALKUSER
environment variables to the location of the pack and indeed expects the $LOGTALKUSER/scratch
directory to be user-writable. Any reason to install the pack as root
but run it as a non-admin user? Note that the pack is handy for some deployment scenarios but not advised for development. You can override the scratch directory by adding to your .swiplrc
the following code:
:- multifile(logtalk_library_path/2).
:- dynamic(logtalk_library_path/2).
logtalk_library_path(scratch_directory, '$HOME/scratch').
Adjust the path to the desired location.
That makes good sense, thank you for the explanation!
I installed logtalk pack in swi-prolog with root user.
When I start to run
use_module(library(logtalk)).
inswipl
using common user, a warning is producedI find that this is caused by the
scratch
folder, when Ichown
the folder to the common user, the warning is gone.Maybe this
scratch_directory
needs to be user specific to avoid such warning.