Open r3k2 opened 7 years ago
I was always to catch the error by forcing it to run on a konsole and so not close the terminal after the app run.
(process:7912): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
(cherrytree:7912): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
(cherrytree:7912): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
Traceback (most recent call last):
File "/bin/cherrytree", line 78, in <module>
f_main(args)
File "/bin/cherrytree", line 50, in f_main
main.main(args)
File "/usr/share/cherrytree/modules/main.py", line 232, in main
lang_str = initializations()
File "/usr/share/cherrytree/modules/main.py", line 161, in initializations
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib/python2.7/locale.py", line 581, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
ok so found a workaround.. add LC_ALL=es_ES.UTF-8 to the /bin/cherrytree field so picks up the right locale.
all my system works fine.. all other apps and python apps.. my locales are setup ok.. so not sure why for cherrytree I have to force the app to get the env variable.
Hi Chris, what linux distribution is running plasma? what do you get in the terminal if you type "export | grep LANG"?
env | grep LANG
LANG=es_ES.utf8
LANGUAGE=es
locale -a
C
en_US.utf8
es_ES
es_ES@euro
es_ES.iso88591
es_ES.iso885915@euro
es_ES.utf8
POSIX
spanish
Would you be able to test a version from github? I don't know how to package for Arch
yeah Im at work now but I will have time to pull and test when I get home.
I just committed, please let me know the behaviour
hey sorry took some time, busy with work.. going to create a arch package now and try. thanks [edit] can you make a reselease with the changes a for example 0.38.2b or 0.38.2.1 ? that way I can pull that into the package. thanks.
I am still having the same issue. Though the workaround by r3k2 for setting the locale works.
@ayushbindlish, Can you try 0.99 version instead of 0.39? You can download it from https://www.giuspen.com/cherrytree/#testing
@ayushbindlish, Can you try 0.99 version instead of 0.39? You can download it from https://www.giuspen.com/cherrytree/#testing
I am using 0.99 and still the same issue. Had to use r3k2 workaround to make it work.
@ayushbindlish, can you say what os/DE are you using? I'll try to reproduce the issue.
@txe I am using Kali 2020.3
Using plasma desktop if I go to the menu and click on the cherry it wont start.. if I open a konsole and type cherrytree then starts fine.. but is a pain to have the konsole window open all the time