-
Notifications
You must be signed in to change notification settings - Fork 3k
mpv cannot handle $HOME variable in mpv.conf file #15598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
in lua scripts try this in mpv.conf you could try ~~ |
In lua, yes:
When pressed x, in terminal I can see: It is OK for 'screenshot-directory' option, too:
But not for 'external-file' option:
mpv manual: "Some mpv options interpret paths starting with ~" So, it seems that this is how mpv works: not all options can handle it. In my opinion this is not too logic... |
There's several path-related options that do not handle common shortcuts (like ~). Fix this by using mp_get_user_path where appropriate which expands the path so users get more intuitive behavior. Fixes mpv-player#15598.
There's several path-related options that do not handle common shortcuts (like ~). Fix this by using mp_get_user_path where appropriate which expands the path so users get more intuitive behavior. Fixes mpv-player#15598.
There's several path-related options that do not handle common shortcuts (like ~). Fix this by using mp_get_user_path where appropriate which expands the path so users get more intuitive behavior. Fixes mpv-player#15598.
There's several path-related options that do not handle common shortcuts (like ~). Fix this by using mp_get_user_path where appropriate which expands the path so users get more intuitive behavior. Fixes mpv-player#15598.
There's several path-related options that do not handle common shortcuts (like ~). Fix this by using mp_get_user_path where appropriate which expands the path so users get more intuitive behavior. Fixes mpv-player#15598.
There's several path-related options that do not handle common shortcuts (like ~). Fix this by using mp_get_user_path where appropriate which expands the path so users get more intuitive behavior. Fixes mpv-player#15598.
There's several path-related options that do not handle common shortcuts (like ~). Fix this by using mp_get_user_path where appropriate which expands the path so users get more intuitive behavior. Fixes mpv-player#15598.
There's several path-related options that do not handle common shortcuts (like ~/). Fix this by using mp_get_user_path where appropriate which expands the path so users get more intuitive behavior. Fixes mpv-player#15598.
Reproduction Steps
Define a path in your mpv.conf file like this:
external-file=~/.config/mpv/mpv.webp
Expected Behavior
Excepted behaviour would be that mpv will use the image...
Actual Behavior
mpv says that the file does not exist:
Can not open external file ~/.config/mpv/mpv.webp.
But if you give the path in the form
external-file=/home/USERNAME/.config/mpv/mpv.webp
, mpv will find the image file.The text was updated successfully, but these errors were encountered: