giuspen / cherrytree

cherrytree
https://www.giuspen.net/cherrytree/
Other
3.44k stars 468 forks source link

cherrytree wont start if started from desktop icon #290

Open r3k2 opened 7 years ago

r3k2 commented 7 years ago

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

r3k2 commented 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
r3k2 commented 7 years ago

ok so found a workaround.. add LC_ALL=es_ES.UTF-8 to the /bin/cherrytree field so picks up the right locale. workaround-cherrytree

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.

giuspen commented 7 years ago

Hi Chris, what linux distribution is running plasma? what do you get in the terminal if you type "export | grep LANG"?

r3k2 commented 7 years ago
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
giuspen commented 7 years ago

Would you be able to test a version from github? I don't know how to package for Arch

r3k2 commented 7 years ago

yeah Im at work now but I will have time to pull and test when I get home.

giuspen commented 7 years ago

I just committed, please let me know the behaviour

r3k2 commented 7 years ago

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.

ayushbindlish commented 4 years ago

I am still having the same issue. Though the workaround by r3k2 for setting the locale works.

txe commented 4 years ago

@ayushbindlish, Can you try 0.99 version instead of 0.39? You can download it from https://www.giuspen.com/cherrytree/#testing

ayushbindlish commented 4 years ago

@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.

txe commented 4 years ago

@ayushbindlish, can you say what os/DE are you using? I'll try to reproduce the issue.

ayushbindlish commented 4 years ago

@txe I am using Kali 2020.3