Tiny Core Extensions > TCE Corepure64

adriconf.tcz not working for my X

<< < (2/8) > >>

nick65go:
fyi: updates in git on 28/04/2019
https://github.com/jlHertel/adriconf/commit/0b3c97b271594802bfc15f7d4fc62439e83ced8e

--- Code: ---index of /10.x/x86_64/tcz/src/adriconf/
adriconf-1.4.tar.gz                                15-Apr-2019 09:16             2608826
compile_adriconf                                   15-Apr-2019 09:20             811
--- End code ---

Juanito:
Maybe you could compile from the latest git locally and, if it fixes your problem, I'll update it in the repo?

Rich:
Hi nick65go
I think curaga has it right. I think the program wants plain 7 bit ASCII (US-ASCII) and is not finding it. Try launching it like this:

--- Code: ---LANG= XDG_SESSION_TYPE=x11 adriconf
--- End code ---
There is a space between  LANG=  and  XDG_SESSION_TYPE. The idea came from:
https://stackoverflow.com/questions/48743106/whats-ansi-x3-4-1968-encoding
If you look at the table here  ANSI_X3.4-1968  is the first entry.
https://www.iana.org/assignments/character-sets/character-sets.xhtml
A couple of other interesting answers:
https://unix.stackexchange.com/questions/67680/what-would-break-if-the-c-locale-was-utf-8-instead-of-ascii

nick65go:
Finaly, I solved it!
The solution was that I MUST load getlocale.tcz, then is OK, with/without setting the variable LANG=, will not matter:


--- Code: ---tc@box:~$ adriconf
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_M_construct null not valid
Aborted
--- End code ---


--- Code: ---tc@box:~$ XDG_SESSION_TYPE=x11 adriconf
adriconf running on X11
Current language code is c
Exception caught: Could not create parser context
(adriconf:16234): Gtk-WARNING **: 21:09:25.255: Could not find the icon 'list-remove-symbolic-ltr'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from: http://icon-theme.freedesktop.org/releases
--- End code ---


--- Code: ---c@box:~$ LANG=dummy XDG_SESSION_TYPE=x11 adriconf

(process:16246): Gtk-WARNING **: 21:09:37.652: Locale not supported by C library.
        Using the fallback 'C' locale.
adriconf running on X11
Current language code is dummy
Exception caught: Could not create parser context

Fontconfig warning: ignoring dummy: not a valid language tag

(adriconf:16246): Gtk-WARNING **: 21:09:38.489: Could not find the icon 'list-remove-symbolic-ltr'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
        http://icon-theme.freedesktop.org/releases
--- End code ---

no pain, no gain ;) So, should be getlocale.tcz a dependency of adriconf.tcz?

EDIT: And we need a wraper/script (in tce.installed) because the icon from wbar is not working, we need to start it with XDG_SESSION_TYPE=x11 @, as I did in aterm.

Juanito:

--- Quote from: nick65go on May 13, 2019, 12:20:21 PM ---Finaly, I solved it!
The solution was that I MUST load getlocale.tcz, then is OK, with/without setting the variable LANG=, will not matter:

--- End quote ---
well spotted - I see that if mylocale is loaded onboot without LANG being set and /usr/lib/locale/locale-archive is deleted, adriconf still works  :o


--- Quote ---EDIT: And we need a wrapper/script (in tce.installed) because the icon from wbar is not working, we need to start it with XDG_SESSION_TYPE=x11 @, as I did in aterm.

--- End quote ---
It's a little more complicated than that - the script would need to detect if x11 or wayland is being used and set XDG_SESSION_TYPE accordingly

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version