mirror of
https://github.com/mpv-player/mpv.git
synced 2026-05-07 20:02:49 +00:00
4c9262664c
If the compositor supports session management, the mpv window is always added to a session. The user can manage multiple sessions by using `--wayland-session=<human-readable-name>`. Human-readable names are mapped to session ids via files under `~/.local/state/mpv/sessions`. The file name is computed as a hash of XDG_CURRENT_DESKTOP and the human-readable name. If multiple mpv instances are started with the same session name, the latter mpv instance takes over the session. Upon session restoration, the mpv window is restored by the compositor according to its state from the previous session. What that entails is compositor policy.
3 lines
99 B
Plaintext
3 lines
99 B
Plaintext
add `--wayland-session=<string>`
|
|
restore the mpv window on wayland using xdg-session-management-v1
|