input.conf
: help running one command strictly after another
#14688
Unanswered
david-perez
asked this question in
Q&A
Replies: 1 comment
-
Get the old behavior refers to calling the shell, not to waiting until the command is completed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've written a script that takes as input a file, prompts the user for a location using
dmenu
, and moves the file to the selected location. I'd likempv
to run it on the currently playing video and then start playing the next video in the playlist.However, I can't figure out how to make
mpv
run a command, and only after it exits, runplaylist-next
.I execute
mpv
as:mpv --idle --force-window \ --loop-file=inf \ $(ls -1 --sort time --reverse *.mp4)
Let's take as an example the
sleep
command.input.conf
:This immediately plays the next video without waiting 5 seconds. Docs say:
But this doesn't work either:
Adding the
sync
command prefix:doesn't work either.
I also tried using
subprocess
instead ofrun
, which supposedly "does not detach the process":but the behavior is identical.
Beta Was this translation helpful? Give feedback.
All reactions