From aa5d4079abfa37e212d8ad29009befcc9c9ba874 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?=
 <yps@yaroslavps.com>
Date: Tue, 16 May 2023 22:58:15 +0300
Subject: lf: switch back to directly using mimeo

xdg-open doesn't accept multiple files/arguments
---
 dotfiles/.config/lf/lfrc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dotfiles/.config/lf/lfrc b/dotfiles/.config/lf/lfrc
index 0ec605e..bc8f503 100644
--- a/dotfiles/.config/lf/lfrc
+++ b/dotfiles/.config/lf/lfrc
@@ -67,7 +67,7 @@ cmd fzf_jump ${{
 cmd fzf_open ${{
 	res="$(find . -type d -path "*/\.*" -prune -o -not -name ".*" -type f | fzf)"
 	if [ -e "$res" ]; then
-	    setsid xdg-open "$res" &
+	    setsid mimeo "$res" &
 	fi
 }}
 
@@ -79,7 +79,7 @@ cmd dragon_drop $cp $(dragon-drop --target | sed 's/file:\/\///g') .
 # copy path to clipboard
 cmd yank-path &printf '%s' "$fx" | wl-copy
 
-cmd open &xdg-open $fx
+cmd open &mimeo $fx
 
 cmd hard_link %{{
 		load=$(cat ~/.local/share/lf/files)
-- 
cgit v1.2.3