Hi LyX developers, Nix (https://nixos.org) is a Unix package manager, which I use to install LaTeX on macOS. A peculiarity of Nix is that all packages are installed into separate directories and the actual directory tree is then constructed via symlinks.
This interacts badly with the way LyX currently detects files in the TeX setup, because TeXFiles.py does not follow symlinks. Therefore, almost nothing is found when using LyX together with Nix’ LaTeX. The following patch fixes the problem for me: --- lyxgit/lib/scripts/TeXFiles.py 2019-05-31 16:27:47.000000000 +0200 +++ lyxgit/lib/scripts/TeXFiles.py 2019-05-29 10:38:25.000000000 +0200 @@ -116,7 +116,7 @@ if not os.path.isdir(dir): continue # walk down the file hierarchy - for root,path,files in os.walk(dir): + for root,path,files in os.walk(dir, followlinks=True): # check file type for file in files: if len(file) > 4 and file[-4:] == file_ext: I hope this change can be considered for inclusion in a future LyX version. Regards, Michael