History

DOCS: clarify what the ~~/ path means

As it turns out the manual was very wrong about this.

sfan5 committed 5 years ago

Commit 3ea1f8e1 parent 87c9eef1 file · +11 −6Browse files

Unified · Split

DOCS/man/mpv.rst+11−6
@@ -433,23 +433,28 @@ need to escape special characters. To work this around, the path can be · 432 unmodified lines
433433 additionally wrapped in the fixed-length syntax, e.g. ``%n%string_of_length_n``
434434 (see above).
435435
436−Some mpv options interpret paths starting with ``~``. Currently, the prefix
437−``~~/`` expands to the mpv configuration directory (usually ``~/.config/mpv/``).
436+Some mpv options interpret paths starting with ``~``.
437+Currently, the prefix ``~~home/`` expands to the mpv configuration directory
438+(usually ``~/.config/mpv/``).
438439 ``~/`` expands to the user's home directory. (The trailing ``/`` is always
439440 required.) The following paths are currently recognized:
440441
441442 ================ ===============================================================
442443 Name Meaning
443444 ================ ===============================================================
444−``~~/`` mpv config dir (for example ``~/.config/mpv/``)
445+``~~/`` If the subpath exists in any of the mpv's config directories
446+ the path of the existing file/dir is returned. Otherwise this
447+ is equivalent to ``~~home/``.
448+ Note that if --no-config is used ``~~/foobar`` will resolve to
449+ ``foobar`` which can be unexpected.
445450 ``~/`` user home directory root (similar to shell, ``$HOME``)
446−``~~home/`` same as ``~~/``
451+``~~home/`` mpv config dir (for example ``~/.config/mpv/``)
447452 ``~~global/`` the global config path, if available (not on win32)
448453 ``~~osxbundle/`` the macOS bundle resource path (macOS only)
449454 ``~~desktop/`` the path to the desktop (win32, macOS)
450−``~~exe_dir`` win32 only: the path to the directory containing the exe (for
455+``~~exe_dir/`` win32 only: the path to the directory containing the exe (for
451456 config file purposes; ``$MPV_HOME`` overrides it)
452−``~~old_home`` do not use
457+``~~old_home/`` do not use
453458 ================ ===============================================================
454459
455460

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t