diff options
author | Kenneth Zhou <knthzh@gmail.com> | 2014-06-18 19:55:40 -0400 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-06-26 19:37:25 +0200 |
commit | cb250d490c14872f03bb0320179e48d05fe2539d (patch) | |
tree | dd27e22fcbb6e306175d041eb2b2c714b7079645 /sub/find_subfiles.c | |
parent | 8bb7d427e2180067f13f8dc5c5105029e9e00be7 (diff) | |
download | mpv-cb250d490c14872f03bb0320179e48d05fe2539d.tar.bz2 mpv-cb250d490c14872f03bb0320179e48d05fe2539d.tar.xz |
Basic xdg directory implementation
Search $XDG_CONFIG_HOME and $XDG_CONFIG_DIRS for config files.
This also negates the need to have separate user and global variants of
mp_find_config_file()
Closes #864, #109.
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'sub/find_subfiles.c')
-rw-r--r-- | sub/find_subfiles.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/find_subfiles.c b/sub/find_subfiles.c index a8d6348fe9..9313bf379d 100644 --- a/sub/find_subfiles.c +++ b/sub/find_subfiles.c @@ -242,7 +242,7 @@ struct subfn *find_text_subtitles(struct mpv_global *global, const char *fname) } // Load subtitles in ~/.mpv/sub limiting sub fuzziness - char *mp_subdir = mp_find_user_config_file(NULL, global, "sub/"); + char *mp_subdir = mp_find_config_file(NULL, global, "sub/"); if (mp_subdir) append_dir_subtitles(global, &slist, &n, bstr0(mp_subdir), fname, 1); talloc_free(mp_subdir); |