This PR fixes the issue with the 'load-file' function in the Nyxt browser not considering symbolic links. The current implementation does not resolve symbolic links to their actual location before attempting to load the file, resulting in the function not recognizing symbolic links.
To address this issue, the 'load-file' function has been modified to call the Common Lisp function 'truename' on the pathname before attempting to load the file. This ensures that the actual location of the file is loaded, even if the pathname is a symbolic link.
Summary of Changes
Modified the 'load-file' function in the 'start.lisp' file to call 'truename' on the pathname before loading the file.
Replaced the line that loads the file with a call to 'load' that takes the result of calling 'truename' on the pathname as its argument.
These changes ensure that the 'load-file' function correctly handles symbolic links and loads the actual location of the file.
Fixes #1.
To checkout this PR branch, run the following command in your terminal:
git checkout sweep/fix-load-file-symbolic-links
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.
Description
This PR fixes the issue with the 'load-file' function in the Nyxt browser not considering symbolic links. The current implementation does not resolve symbolic links to their actual location before attempting to load the file, resulting in the function not recognizing symbolic links.
To address this issue, the 'load-file' function has been modified to call the Common Lisp function 'truename' on the pathname before attempting to load the file. This ensures that the actual location of the file is loaded, even if the pathname is a symbolic link.
Summary of Changes
These changes ensure that the 'load-file' function correctly handles symbolic links and loads the actual location of the file.
Fixes #1.
To checkout this PR branch, run the following command in your terminal:
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.