tryffel / jellycli

Jellyfin terminal client
GNU General Public License v3.0
206 stars 8 forks source link

First run quits with error related to config file #18

Closed campyne closed 3 years ago

campyne commented 3 years ago

Hello, When running jellycli for the first time, the program quits with the following:

WARN[0000] Create new config file /home/myuser/.config/jellycli.yaml 
ERRO[0000] save config file: save config file: open /home/myuser/.config/jellycli/jellycli.yaml: no such file or directory 
FATA[0000] save config file: save config file: open /home/myuser/.config/jellycli/jellycli.yaml: no such file or directory

After taking a look, it seems to me that the issue is in config/file.go where it uses dir, err = os.UserConfigDir() to get the directory for all configs /home/myuser/.config and doesn't then add the appropriate sub-directory jellycli to it.

tryffel commented 3 years ago

Yes, it certainly seems so. Luckily it should be an easy fix, just create the directory manually for now.

Edit: it is also possible that you need to manually create empty file with 'touch ~/.config/jellycli/jellycli.yaml' after creating that directory. If even that doesn't help, try copying the sample file to that location.