dylanaraps / fff

📁 A simple file manager written in bash.
MIT License
4.09k stars 173 forks source link

view img with w3mimgdisplay not working on NetBSD #153

Closed pfr-dev closed 4 years ago

pfr-dev commented 4 years ago

I'm on NetBSD 9.0 and w3m-img is installed and located in /usr/pkg/bin

I edited the file to reflect this:

get_w3m_path() {
    # Find the path to the w3m-img library.
    w3m_paths=(/usr/pkg/bin/w3m)
    read -r w3m _ < <(type -p w3mimgdisplay "${w3m_paths[@]}")
}

images display fine in w3m but when I hit i on an image in fff i get nothing (goes blank)

all listed deps are installed

pfr-dev commented 4 years ago

As it turns out w3mimgdisplay is in /usr/pkg/libexec/w3m/ so I've now edited the file as such:

get_w3m_path() {                                                                                              
    # Find the path to the w3m-img library.
    w3m_paths=(/usr/pkg/{bin/,}{lib,libexec,lib64,libexec64}/w3m/w3mi*)
    read -r w3m _ < <(type -p w3mimgdisplay "${w3m_paths[@]}")
}

Now it works :)