You are not logged in.

#1 2024-02-03 22:59:16

iSantxs
Member
Registered: 2024-02-03
Posts: 6

[SOLVED] error rofi failed to set locale

Hey i have some problems with rofi in my system with qtile, when i run:

rofi -show drun 

it outputs this:

Rofi-WARNING **: 16:53:41.255: Failed to set locale

i cant find a solution,  pls help.

Last edited by iSantxs (2024-02-04 23:00:20)

Offline

#2 2024-02-03 23:19:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,559

Offline

#3 2024-02-03 23:29:22

iSantxs
Member
Registered: 2024-02-03
Posts: 6

Re: [SOLVED] error rofi failed to set locale

Anyway, it doesn't work, i tried all, i think

Offline

#4 2024-02-03 23:31:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,559

Re: [SOLVED] error rofi failed to set locale

Also read the sitckies, https://bbs.archlinux.org/viewtopic.php?id=57855
The idea is that you post the outputs of the commands referenced in that thread.

Offline

#5 2024-02-04 05:28:10

iSantxs
Member
Registered: 2024-02-03
Posts: 6

Re: [SOLVED] error rofi failed to set locale

hahah sorry im dumb, here's the output from that post, it have's any error?
[~] locale -a

[i]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.utf8
POSIX
es_MX
es_MX.iso88591
es_MX.utf8[/i]

[i][~] localectl[/i]

[i]System Locale: LANG=es_MX.UTF-8 UTF-8
    VC Keymap: us
   X11 Layout: (unset)

[i][~] grep -v ^# /etc/locale.gen[/i]

[i]es_MX.UTF-8 UTF-8
es_MX ISO-8859-1

Last edited by iSantxs (2024-02-04 05:46:06)

Offline

#6 2024-02-04 09:19:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,559

Re: [SOLVED] error rofi failed to set locale

System Locale: LANG=es_MX.UTF-8 UTF-8

That's bogus.

cat /etc/locale.conf
locale

Offline

#7 2024-02-04 20:39:28

iSantxs
Member
Registered: 2024-02-03
Posts: 6

Re: [SOLVED] error rofi failed to set locale

What d'u mean?

[~] cat /etc/locale.conf

LANG=es_MX.UTF-8 UTF-8

[~] locale

locale: Cannot set LC_MESSAGES to default locale: No such fi>
locale: Cannot set LC_ALL to default locale: No such file or>
LANG=es_MX.UTF-8\ UTF-8
LC_CTYPE=C.UTF-8
LC_NUMERIC="es_MX.UTF-8 UTF-8"
LC_TIME="es_MX.UTF-8 UTF-8"
LC_COLLATE="es_MX.UTF-8 UTF-8"
LC_MONETARY="es_MX.UTF-8 UTF-8"
LC_MESSAGES="es_MX.UTF-8 UTF-8"
LC_PAPER="es_MX.UTF-8 UTF-8"
LC_NAME="es_MX.UTF-8 UTF-8"
LC_ADDRESS="es_MX.UTF-8 UTF-8"
LC_TELEPHONE="es_MX.UTF-8 UTF-8"
LC_MEASUREMENT="es_MX.UTF-8 UTF-8"
LC_IDENTIFICATION="es_MX.UTF-8 UTF-8"
LC_ALL=

Offline

#8 2024-02-04 20:44:50

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,559

Re: [SOLVED] error rofi failed to set locale

"LANG=es_MX.UTF-8"
"es_MX.UTF-8 UTF-8" isn't a valid locale.

Offline

#9 2024-02-04 21:18:51

iSantxs
Member
Registered: 2024-02-03
Posts: 6

Re: [SOLVED] error rofi failed to set locale

It is!, i solved it with this finally:

checking if the /etc/locale.gen is withouth #, all good with it.

[~] locale-gen 

in the file /etc/locale.conf it should be:

LANG=es_MX.UTF-8 UTF-8

then
[~] localectl set-locale LANG=es_MX.UTF-8

finally
[~] reboot

and now rofi work's 

thx u so much anyway bro

Offline

#10 2024-02-04 21:23:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,559

Re: [SOLVED] error rofi failed to set locale

localectl set-locale LANG=es_MX.UTF-8

And now, re-inspect /etc/locale.conf…

"es_MX.UTF-8 UTF-8" is the line you want to uncomment in /etc/locale.gen (and it was, according to #5), but it's NOT a valid locale.

Edit: Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Last edited by seth (2024-02-04 21:23:28)

Offline

Board footer

Powered by FluxBB