tsl0922/mpv-menu-plugin

mpv auto exit after `open-clipboard` with an unknown file or directory

verygoodlee opened this issue · 5 comments

Ctrl+v script-message-to dialog open-clipboard #menu: Open > Clipboard

Unknown file
image

This is also triggered if the filename uses quotation marks, such as "E:\test.mp4",
the quotation marks must be removed to work properly

It has nothing to do with this plugin. This is mpv's default behaviour, exit after finishing playback. If you don't want it, start mpv with --idle=yes.

If the clipboard content is not a protocol, check whether the file exists.
verygoodlee/mpv-menu-plugin@7ecacde

It should be more efficient if implemented in C

You can check it in clipboard_cb.

You can check it in clipboard_cb.

Yes, I didn't read the code carefully, menu.dll get the clipboard and doesn't open the file, callback to dialog.lua to open file.