nwg-piotr/nwg-look

Couldn't load lang file

Opened this issue · 2 comments

Building from 8f63328

INFO[0000] >>> Loading preferences                      
INFO[0000] lang: en_AU                                  
ERRO[0000] Couldn't load the basic lang file            

Perhaps fallback to C.UTF-8 if en_UK, en_AU et al. are not found?

The "basic lang file" is /usr/share/nwg-look/langs/en_US.json.

Here:

nwg-look/tools.go

Line 1254 in 8f63328

shellDataFile := filepath.Join(dataHome(), "/nwg-shell/data")

dataHome() returns $HOME/.local/share which prevents nwg-look from starting. I propose to search the $PWD as well.