1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-19 14:26:57 +00:00
mpv/common
Dudemanguy 7c4c9bc86f player: use XDG_STATE_HOME for watch_later
A pain point for some users is the fact that watch_later is stored in
the ~/.config directory when it's really not configuration data. Roughly
2 years ago, XDG_STATE_DIR was added to the XDG Base Directory
Specification[0] and its description, user-specific state data, actually
perfectly matches what watch_later data is for. Let's go ahead and use
this directory as the default for watch_later. This change only affects
non-darwin unix-like systems (i.e. Linux, BSDs, etc.). The directory
doesn't move for anyone else.

Internally, quite a few things change with regards to the path
selection. If the platform in question does not have a statedir concept,
then the path selection will simply return "home" instead (old
behavior). Fixes #9147.

[0]: 4f2884e16d
2023-05-09 20:37:17 +00:00
..
av_common.c common/av_common: clean up mp_lavc_set_extradata 2023-03-14 23:59:47 +02:00
av_common.h common/av_common: clean up mp_lavc_set_extradata 2023-03-14 23:59:47 +02:00
av_log.c common/av_log: move general FFmpeg version before library versions 2022-11-15 21:41:22 +02:00
av_log.h player: rearrange libav* library check 2020-03-08 19:38:10 +01:00
codecs.c codecs: remove unused family field 2018-02-01 10:21:55 +01:00
codecs.h codecs: remove unused family field 2018-02-01 10:21:55 +01:00
common.c common: add helper for subtracting rectangles 2020-05-22 14:17:46 +02:00
common.h player: add video-sync=display-tempo 2023-01-09 15:17:09 +00:00
encode_lavc.c options: transition options from OPT_FLAG to OPT_BOOL 2023-02-21 17:15:17 +00:00
encode_lavc.h encode_lavc: replace deprecated av_init_packet() 2022-01-10 22:56:52 +01:00
encode.h options: transition options from OPT_FLAG to OPT_BOOL 2023-02-21 17:15:17 +00:00
global.h player: use XDG_STATE_HOME for watch_later 2023-05-09 20:37:17 +00:00
msg_control.h player: add --term-title option 2020-05-25 20:39:37 +02:00
msg.c msg: log-file set at mpv.conf: don't ignore early messages 2023-01-23 11:05:08 +02:00
msg.h msg: add function to reduce log level 2020-05-10 16:40:26 +02:00
playlist.c various: drop unused #include "config.h" 2023-02-20 14:21:18 +00:00
playlist.h client API: report IDs of inserted playlist entries on loading playlist 2020-03-27 00:57:11 +01:00
recorder.c ffmpeg: update to handle deprecation of av_init_packet 2022-12-03 14:44:18 -08:00
recorder.h recorder: add support for attachments (fonts) 2021-07-08 12:44:06 +03:00
stats.c build: add meson build support 2021-11-14 19:13:10 +00:00
stats.h player, stats: more silly debug stuff 2020-04-10 00:55:39 +02:00
tags.c demux: support for some kinds of timed metadata 2018-04-18 01:17:42 +03:00
tags.h demux: support for some kinds of timed metadata 2018-04-18 01:17:42 +03:00
version.c build: change filenames of generated files 2020-06-04 16:59:05 +02:00