![](https://secure.gravatar.com/avatar/4f90ced6bd47c80395b33c0fde81a0d0.jpg?s=120&d=mm&r=g)
Tobias Burnus wrote:
a) Is the TEXMFCNF environment variable necessary or can this also be read by a config file, which is overwritten by the environment variable? Which scripts/executables make use of that environemt variable?
I just saw that this might be possible in theory, but it fails due to the missing symbolic link resolving: if input.env(instance,'TEXMFCNF') == "" then local ownpath = environment.ownpath() or "." ownpath is here "/usr/bin" and obvious finding "texmf" by moving up in that path does not work. In function environment.ownpath() one need to add in if lfs.isfile(b..".exe") or lfs.isfile(b) then ownpath = p break some check whether "b" is a symbolic link and if it is, one follows the symbolic link until one finds the real binary; then one can use that path for ownpath. I tried to find some Lua routine which does so, but I couldn't find one ad hoc. (I have also the vague feeling that the algorithm fails for /some/directory/which/is/not/in/PATH/luatools.) I tried lfs.symlinkattributes() (whose mode should be "link") plus posix.readlink, but I failed to get this work. (lfs.symlinkattributes and posix are not found.) Tobias