diff options
| author | Future is FOSS <79040025+futureisfoss@users.noreply.github.com> | 2021-12-04 13:47:35 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-04 08:47:35 -0500 |
| commit | ed9a67ed6dbd408032f51f34a471362264c47e1c (patch) | |
| tree | f51b1d82085ae9e6173ec655df3197a51d407dae /.config/lf/lfrc | |
| parent | 499aeaed3a3d09e7fe2522ca561be95f42d09ef3 (diff) | |
| download | eibhear-ed9a67ed6dbd408032f51f34a471362264c47e1c.tar.gz eibhear-ed9a67ed6dbd408032f51f34a471362264c47e1c.tar.zst eibhear-ed9a67ed6dbd408032f51f34a471362264c47e1c.zip | |
follow symlinks when detecting filetype in lf (#1052)
fix bug in lf where symlinked files don't open in the expected program
Diffstat (limited to '.config/lf/lfrc')
| -rw-r--r-- | .config/lf/lfrc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/lf/lfrc b/.config/lf/lfrc index ebe16fb..9d6ceba 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -14,7 +14,7 @@ $lf -remote "send $id set previewer ${XDG_CONFIG_HOME:-$HOME/.config}/lf/scope" # cmds/functions cmd open ${{ - case $(file --mime-type $f -b) in + case $(file --mime-type "$(readlink -f $f)" -b) in image/vnd.djvu|application/pdf|application/octet-stream|application/postscript) setsid -f zathura $fx >/dev/null 2>&1 ;; text/*) $EDITOR $fx;; image/x-xcf) setsid -f gimp $f >/dev/null 2>&1 ;; |
