Reflector-simple yad ERROR

When I try to run reflector-simple either from the Welcome screen or in a terminal window, I get the following

reflector-simple
reflector-simple: info: reading file /etc/reflector-simple-tool.conf
reflector-simple: info: reading file /etc/reflector-simple.conf

(process:7798): Gtk-WARNING **: 13:09:25.031: Locale not supported by C library.
        Using the fallback 'C' locale.

(yad:7798): Gtk-WARNING **: 13:09:25.045: Theme parsing error: gtk.css:1649:16: '-gtk-icon-size' is not a valid property name

(yad:7798): Gtk-WARNING **: 13:09:25.045: Theme parsing error: gtk.css:1652:16: '-gtk-icon-size' is not a valid property name
Unable to parse command line: Invalid byte sequence in conversion input

[don@ThinkPad ~]$ cat /etc/locale.conf
LANG=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_TIME=en_US.UTF-8

Pudge

EDIT:
[don@ThinkPad ~]$ pacman -Q reflector-simple
reflector-simple 2023-2

1 Like

Same version, but cannot replicate, all working here.

1 Like

Same here.

1 Like
LANG=en_GB.UTF-8
LC_ADDRESS=en_GB.UTF-8
LC_IDENTIFICATION=en_GB.UTF-8
LC_MEASUREMENT=en_GB.UTF-8
LC_MONETARY=en_GB.UTF-8
LC_NAME=en_GB.UTF-8
LC_NUMERIC=en_GB.UTF-8
LC_PAPER=en_GB.UTF-8
LC_TELEPHONE=en_GB.UTF-8
LC_TIME=en_GB.UTF-8

Missed a bit, our shopping was just delivered!!

I don’t use this laptop very much. Did an update and 542 packages were updated.
So far everything works except reflector-simple. I am guessing something went awry during such a massive update. I’m not wrapping my head around the yad error. Not sure why everyone else’s works bu t not mine.

BTW it’s a Thinkpad T430

@manuel HELP!

Pudge

What DE are you on?
What does your (potential) ~/.profile show? Does it contain LC_ALL="en_US.UTF-8" ?

EDIT:
What does your locale -a show? - Mine reads:

$ locale -a
C
C.UTF-8
de_DE.utf8
POSIX

1 Like

KDE Plasma

I don’t have a ~/.profile directory, maybe that’s it.

Pudge

EDIT:

[don@ThinkPad ~]$ locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
C.UTF-8
POSIX

edit 2
I also did
localectl set-locale LANG=en_US.UTF-8

You could create a new user and see if it works there. :wink:

Might also be a problem with .bashrc

EDIT:
Guess there’s something in your locale.conf or anything else imported to the user-profile (.bashrc, …) that sets an invalid value, so file parsing may have stopped when encountering a broken entry.

1 Like

It’s a file, not a folder. :wink:
But AFAIK, KDE doesn’t use it, so it can’t be that. :wink:

1 Like

looks like /etc/locale.conf has some bad signs?
or the

/etc/locale.gen

?

2 Likes

I finally went to the Arch WiKi, which I should done in the first place. My bad.
Followed this from the WiKi

Before a locale can be enabled on the system, it must be generated.
This can be achieved by uncommenting applicable entries in /etc/locale.gen,
and running locale-gen. 

This fixed the problem. The large update must have corrupted something.
I guess I payed too much attention to the yad errors that reflector-simple was throwing.

Thanks everyone for your responses.

Pudge

3 Likes

i had some hickups on some installs too.

locale-gen is in glibc package. When glibc is updated, it seems (by the Archwiki note logic) that locale-gen should be executed again, in case changes are in some way incompatible with the previously generated languages.
A glibc hook seems to be a proper safety guard/solution. There is currently no such hook from upstream.
Maybe this can be reported upstream to the glibc packager, and/or EnOS supply one for the distro. :wi/nk:
:upside_down_face: False alarm.

2 Likes

That makes darn good sense. I’d already been wondering about the glibc package in this context, here. :wink:

:v:

2 Likes

It looks like it, but it’s wrong :rofl: .

I have just run my huge update and the output reminded me (I should have remembered, but brain deterioration is unavoidable, sadly…) the package itself runs locale-gen after each glibc update, so no extra hook is required :smiling_face: .

2 Likes

wau i mean yea experienced users may will do that … but … … there should be a hook for this by default … why a user should think about this ? (sry for ranting … )

1 Like

You seem to have missed:

:wink:

2 Likes

so i take back all the bad rant :wink:

4 Likes

Yeah, it’s a pity to waste them when not needed :sweat_smile:

2 Likes

We need the emojis back!!! :joy:

5 Likes