Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
image: Added NetBSD support and FFF_W3M_PATH. Closes #162
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Sep 17, 2020
1 parent c7e9b75 commit 542be9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fff
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ get_ls_colors() {

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

get_mime_type() {
Expand Down

4 comments on commit 542be9f

@dylanaraps
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know if any other changes are needed, if not I'll release a new version..

@iamleot
Copy link

@iamleot iamleot commented on 542be9f Sep 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess that FFF_W3M_PATH should be enough to possibly avoid hard-coded paths so that's fine.

@dylanaraps
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could just use sed -i (or equivalent) as part of the build process. Simply substitute the variable with the path you'd like to hardcode.

@dylanaraps
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.