Open tikki opened 4 years ago
The XDG Base Directory Specification is supported by many applications and aims to help a user keep their home directory a bit more tidy.
This PR adds support for the following locations from the spec:
To support existing users the code first checks if ~/.movielst exists and only uses the XDG dirs if ~/.movielst does not exist.
~/.movielst
Some caches will have to be rebuilt though (or manually migrated), because their locations changed:
~/.movielst/cache
~/.movielst/cache/images
~/.movielst/dep
~/.movielst/cache/deps
The locations of the config.ini and movies.db are not affected (for legacy users).
config.ini
movies.db
The XDG Base Directory Specification is supported by many applications and aims to help a user keep their home directory a bit more tidy.
This PR adds support for the following locations from the spec:
To support existing users the code first checks if
~/.movielst
exists and only uses the XDG dirs if~/.movielst
does not exist.Some caches will have to be rebuilt though (or manually migrated), because their locations changed:
~/.movielst/cache
->~/.movielst/cache/images
~/.movielst/dep
->~/.movielst/cache/deps
The locations of the
config.ini
andmovies.db
are not affected (for legacy users).