]> git.ipfire.org Git - thirdparty/tvheadend.git/commit
dvr_storage: Use XDG spec directories
authorOlliver Schinagl <oliver@schinagl.nl>
Sat, 10 Jun 2023 13:42:03 +0000 (15:42 +0200)
committerFlole998 <Flole998@users.noreply.github.com>
Fri, 16 Jun 2023 11:11:41 +0000 (13:11 +0200)
commitdbf973307ae34d8a7918b781b9f315ad51ef15a8
tree40b0d04ea4947361606739af1546adf4f1179f97
parentc00c4eb71d604112da7cbc58f4aee4a8c5a1f0d9
dvr_storage: Use XDG spec directories

The XDG spec has a way to determine the users preferred Video directory.
This is important, because in different locales, this may be a different
directory, preventing annoyance for users who have a localized home dir.

With the newly added XDG helpers, this becomes a triviality.

This change does mean, that the behavior is slightly changed, as XDG
directories are probed first.

However since this only affects the startup, after which these
directories are stored in the config, the impact should be neglectable.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
src/dvr/dvr_config.c