]> git.ipfire.org Git - thirdparty/tvheadend.git/commit
config: Add support for XDG config
authorOlliver Schinagl <oliver@schinagl.nl>
Sat, 10 Jun 2023 13:35:26 +0000 (15:35 +0200)
committerFlole998 <Flole998@users.noreply.github.com>
Fri, 16 Jun 2023 11:11:41 +0000 (13:11 +0200)
commitaf49e4bd9066bcba873718cf7dab42235de49982
tree998c68d087e9b8ae52310d11075be5de17aa04bc
parentcf87a5ddba7b439631d2c105879671422d118638
config: Add support for XDG config

Over the last years, the freedesktop organization has promoted the use
of XDG_HOME_CONFIG for storing configuration data.

Since TVHeadend also wants to help declutter the home directory, lets
follow the spec for our own configuration. While here, reduce the path
from `hts/tvheaded` to just `hts`.

The implementation does not change behavior of existing installations!
If `.hts/tvheadend` exists, it will be used as before.

New installations, will try to use `.config/hts` instead, and
'migrating' is as easy as `mv .hts/tvheadend .config/hts`.

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