mpv icon indicating copy to clipboard operation
mpv copied to clipboard

Does the path `~~exe_dir/` works normally?

Open hooke007 opened this issue 3 years ago • 3 comments

Important Information

Provide following Information:

  • mpv version https://github.com/shinchiro/mpv-winbuild-cmake/releases/tag/20220323
  • Windows Version win11 21h2
  • Source of the mpv binary https://github.com/shinchiro/mpv-winbuild-cmake/releases/tag/20220323
  • If known which version of mpv introduced the problem N/A
  • Possible screenshot or video of visual glitches see below

Reproduction steps

Original issue: https://github.com/shinchiro/mpv-packaging/issues/21 The behaviour shows different with the first time. Now it cannot output at all.

  1. install mpv by the bat file
  2. write the contents into mpv.conf
 log-file = "~~exe_dir/temp/mpv.log"
 screenshot-directory = "~~exe_dir/temp/"
 sharpen=2
 gpu-shader-cache-dir="~~exe_dir/temp/"
  1. open any video (i.e. a file in desktop) with mpv (windows context menu)
  2. try to create the screenshot

Expected behavior

The logfile/screenshot/caches should be saved where mpv.exe is located.

Actual behavior

Nothing could be saved. Snipaste_2022-03-23_16-17-34

Log file

In this case it could not output the log.

Sample files

N/A

hooke007 avatar Mar 23 '22 16:03 hooke007

I changed the log-file = "~~/mpv.log" only to output the log. mpv.log

hooke007 avatar Mar 23 '22 16:03 hooke007

It works but you have to create the folder you are pointing to first otherwise it errors as shown above.

shinji257 avatar Jul 15 '22 23:07 shinji257

create the folder you are pointing to

Doesn't work , No diff here.

hooke007 avatar Jul 15 '22 23:07 hooke007

Old but what's likely happening here is that exe_dir is returning "" for some reason instead of an actual path for you. Looks like a bug.

Dudemanguy avatar Jan 09 '23 04:01 Dudemanguy