You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the following code, when I open archive file:
cmd open &{{
case "$(echo "$f" | sed 's/\([A-Z]\)/\L\1/g')" in
*.tar.bz|*.tar.bz2|*.tbz|*.tbz2|*.tar.gz|*.tgz|*.tar.zst|*.tar.xz|*.txz|*.zip|*.rar|*.iso)
mntdir="$f-archivemount"
if [ ! -d "$mntdir" ]; then
mkdir "$mntdir"
fuse-archive -o allow_other "$f" "$mntdir"
fi
mntdir="$(printf '%s' "$mntdir" | sed 's/\\/\\\\/g;s/"/\\"/g')"
lf -remote "send $id cd \"$mntdir\""
lf -remote "send $id reload"
;;
I want to pipe fuse-archive' messages to UI (because show mount progress).
I try replace fuse-archive -o allow_other "$f" "$mntdir" the following code: lf -remote "send $id %fuse-archive -o allow_other \"$f\" \"$mntdir\""
Works, but it have a problem with this solution:
It does not wait for the command to finish, but wants to enter the mounted directory immediately.
What is the right solution?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I use the following code, when I open archive file:
I want to pipe fuse-archive' messages to UI (because show mount progress).
I try replace fuse-archive -o allow_other "$f" "$mntdir" the following code:
lf -remote "send $id %fuse-archive -o allow_other \"$f\" \"$mntdir\""
Works, but it have a problem with this solution:
It does not wait for the command to finish, but wants to enter the mounted directory immediately.
What is the right solution?
Beta Was this translation helpful? Give feedback.
All reactions