abhimanyuPathania / lyrico

A python based command-line lyrics downloader
https://pypi.python.org/pypi/lyrico
Other
15 stars 6 forks source link

Config file not stored in user's home directory #5

Open cweiske opened 8 years ago

cweiske commented 8 years ago

lyrico tries to save the config.ini inside the system-wide directory /usr/local/lib/python2.7/dist-packages/lyrico/ instead of the XDG config directory:

$ lyrico set source_dir ~/Musik/neu/dummy/
Unable to save settings to config.
[Errno 13] Permission denied: u'/usr/local/lib/python2.7/dist-packages/lyrico/config.ini'

It should store the configuration file in ~/.config/lyrico.ini on Linux.

cweiske commented 7 years ago

https://pypi.python.org/pypi/appdirs could be used to determine the correct config file location.