nwg-piotr / nwg-look

GTK3 settings editor adapted to work in the wlroots environment
MIT License
557 stars 16 forks source link

Couldn't load lang file #72

Open savchenko opened 2 months ago

savchenko commented 2 months ago

Building from https://github.com/nwg-piotr/nwg-look/commit/8f63328faa3bb83c546b63fa91c7e89c0163bafb

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?

nwg-piotr commented 2 months ago

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

savchenko commented 2 months ago

Here:

https://github.com/nwg-piotr/nwg-look/blob/8f63328faa3bb83c546b63fa91c7e89c0163bafb/tools.go#L1254

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