summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/lf/lfrc2
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 ;;