Hi, so I’m still working on a prompt feature for a download destination directory.
I’ve narrowed down to data-storage.lisp
and that’s where I’ve been looking at. I’ve figured out that the download path is specified in the download-data-path
class in its dirname
slot value and this slot value calls the function xdg-download-dir
to get download directory.
So I tried to call a prompt in the xdg-download-dir
function. I tried this line (setf dir ((promp :input (namestring *default-pathname-defaults* :prompt "Open download directory" :sources (list (make-instance 'file-source))))))
and I added it to xdg-download-dir
thinking that it would assign the variable dir with whatever value the prompt receives from the user and assigns this value to the download-data-path
slot value.
But when I load the data-storage.lisp
file my Nyxt browser just freezes. I don’t get any error ouput or anything it just freezes and I’m not sure why. I’ve been scratching my head with this problem for a few days now but I still don’t know what’s wrong. I would appreciate any thoughts or input please because I have no idea what to do. Thank you.