Mozzo1000 / movielst

:movie_camera: Everything about your movies within the command line.
Other
0 stars 1 forks source link

Support XDG environment settings #34

Open tikki opened 4 years ago

tikki commented 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.

Some caches will have to be rebuilt though (or manually migrated), because their locations changed:

The locations of the config.ini and movies.db are not affected (for legacy users).