Rofi failed to set locale

check the file ~/.config/plasmalocalerc

I detect inconsistency in what you say:

then later on (last post) you only mention en_US.UTF-8

the following is what it looks like here - it should probably be the same for you

grep -v ^# /etc/locale.gen
en_US.UTF-8 UTF-8  
de_DE.UTF-8 UTF-8
localectl status
System Locale: LANG=de_DE.UTF-8
    VC Keymap: de-latin1-nodeadkeys
   X11 Layout: de
  X11 Variant: nodeadkeys
localectl list-locales
C.UTF-8
de_DE.UTF-8
en_US.UTF-8

That’s just because i would highlight that the UTF-8 has to be written twice in the locale.gen and i don’t know if it causes problems if it’s only written twice there and not in locale.conf but i have both added DE and US ^^

the plasma-localerc is looking fine
( also how can I send pictures in this forum because the manjaro forum tells me I can’t put pictures in my
messages because. I want to show you guys my configs maybe you spot something i don’t see yet )

don’t send pictures here
use text whenever you can - which is easy in the case of configuration files
use outside services to upload pictures and link to them here

localectl list-locales is nearly completely different:

C.UTF-8
aa_DJ.UTF-8
aa_ER.UTF-8
aa_ER.UTF-8@saaho
aa_ET.UTF-8
af_ZA.UTF-8
agr_PE.UTF-8
ak_GH.UTF-8
am_ET.UTF-8
an_ES.UTF-8
anp_IN.UTF-8
ar_AE.UTF-8
ar_BH.UTF-8
ar_DZ.UTF-8
ar_EG.UTF-8
ar_IN.UTF-8
ar_IQ.UTF-8
ar_JO.UTF-8
ar_KW.UTF-8
ar_LB.UTF-8
ar_LY.UTF-8
ar_MA.UTF-8
ar_OM.UTF-8
ar_QA.UTF-8
ar_SA.UTF-8
ar_SD.UTF-8
ar_SS.UTF-8
ar_SY.UTF-8
ar_TN.UTF-8
ar_YE.UTF-8
as_IN.UTF-8
ast_ES.UTF-8
ayc_PE.UTF-8
az_AZ.UTF-8
az_IR.UTF-8
be_BY.UTF-8
be_BY.UTF-8@latin
bem_ZM.UTF-8
ber_DZ.UTF-8
ber_MA.UTF-8
bg_BG.UTF-8
bhb_IN.UTF-8
bho_IN.UTF-8
bho_NP.UTF-8
bi_VU.UTF-8
bn_BD.UTF-8
bn_IN.UTF-8
bo_CN.UTF-8
bo_IN.UTF-8
br_FR.UTF-8
brx_IN.UTF-8
bs_BA.UTF-8
lines 1-52

and in my localectl status i don’t have the nodeadkeys but i think that’s not the problem here

Your problem seems to be that you have literally All of the available locales enabled.

instead of just one or two or three …

… restore from default
and/or comment everything but the one or two you need

to have every possible locale enabled
like you have
is simply overkill

no one needs that - not even you

You mean in the locale.gen ? Because theres everything commented out besiides eng_US and de_DE

yes

there is NO WAY that:

localectl list-locales

would produce that output if not every single locale was enabled

which is certainly not what the state is supposed to be.


how did you manage to do that? -
by default, every one of these lines is commented (starts with a # sign)

… but if there is literally everything there is enabled
there should not be a locale problem … for any locale imaginable …

from what you posted:
NOTHING is commented out - not even one single line …
everything is enabled

there is everywhere a # before everything the only two enabled things are en_US and de_DE
and they are from default enabled by calamares and even if I generate everything new with sudo locale-gen then the output is:
generating:
en_US
de_DE

but localectl list-locales still lists everything

( I checked this at the beginning of my problem and right now again )

That is not what you said.
And now you say two contradictory things once again.

getting the locale settings right is not difficult and well explained

I’m out of here.

Sorry man but I say just what my outputs are the console tells when generating everythings normal in the editor everything is normal but when I use localectl list-locales it’s a completely wrong output

Linux-aarhus do you got any idea why my console outputs are conflicting ?

 $ localectl --help
localectl [OPTIONS...] COMMAND ...

Query or change system locale and keyboard settings.

Commands:
  status                   Show current locale settings
  set-locale LOCALE...     Set system locale
  list-locales             Show known locales
  set-keymap MAP [MAP]     Set console and X11 keyboard mappings
  list-keymaps             Show known virtual console keyboard mappings
  set-x11-keymap LAYOUT [MODEL [VARIANT [OPTIONS]]]
                           Set X11 and console keyboard mappings
  list-x11-keymap-models   Show known X11 keyboard mapping models
  list-x11-keymap-layouts  Show known X11 keyboard mapping layouts
  list-x11-keymap-variants [LAYOUT]
                           Show known X11 keyboard mapping variants
  list-x11-keymap-options  Show known X11 keyboard mapping options

Options:
  -h --help                Show this help
     --version             Show package version
     --no-pager            Do not pipe output into a pager
     --no-ask-password     Do not prompt for password
  -H --host=[USER@]HOST    Operate on remote host
  -M --machine=CONTAINER   Operate on local container
     --no-convert          Don't convert keyboard mappings

See the localectl(1) man page for details.

Example from my system

 $ cat /etc/locale.gen
# Configuration file for locale-gen
#
# lists of locales that are to be generated by the locale-gen command.
#
# Each line is of the form:
#
#     <locale> <charset>
#
#  where <locale> is one of the locales given in /usr/share/i18n/locales
#  and <charset> is one of the character sets listed in /usr/share/i18n/charmaps
#
#  The locale-gen command will generate all the locales,
#  placing them in /usr/lib/locale.
#
#  A list of supported locales is given in /usr/share/i18n/SUPPORTED
#  and is included in this file. Uncomment the needed locales below.
#

[...]

###
#
# Locales enabled by Calamares
da_DK.UTF-8 UTF-8
en_DK.UTF-8 UTF-8
en_US.UTF-8 UTF-8
 $ cat /etc/locale.conf
LANG=en_DK.UTF-8
LC_ADDRESS=da_DK.UTF-8
LC_IDENTIFICATION=da_DK.UTF-8
LC_MEASUREMENT=da_DK.UTF-8
LC_MONETARY=da_DK.UTF-8
LC_NAME=da_DK.UTF-8
LC_NUMERIC=da_DK.UTF-8
LC_PAPER=da_DK.UTF-8
LC_TELEPHONE=da_DK.UTF-8
LC_TIME=da_DK.UTF-8
 $ localectl status
System Locale: LANG=en_DK.UTF-8
               LC_NUMERIC=da_DK.UTF-8
               LC_TIME=da_DK.UTF-8
               LC_MONETARY=da_DK.UTF-8
               LC_PAPER=da_DK.UTF-8
               LC_NAME=da_DK.UTF-8
               LC_ADDRESS=da_DK.UTF-8
               LC_TELEPHONE=da_DK.UTF-8
               LC_MEASUREMENT=da_DK.UTF-8
               LC_IDENTIFICATION=da_DK.UTF-8
    VC Keymap: dk-latin1
   X11 Layout: dk

This is a consequence of the package glibc-locales and that package is not easily removed as can be seen from this topic

Okay so as far as I understood this the glibc-locales are conflicting with the locale.gen and cannot be easily removed and that’s why rofi is unable to set the locale right ?

I don’t know if the glibc-locales package is interfering with rofi - it is unexpected if it does.

I suggest you remove the package

sudo pacman -Rns glibc-locales

Then - due to the issue mentioned my linked topic - you need to reinstall glibc

sudo pacman -Syu glibc

Then run

sudo locale-gen

Now the command localectl list-locales should yield the expected result - the example is from my system

 $ localectl list-locales
da_DK.UTF-8
en_DK.UTF-8
en_US.UTF-8
1 Like

Okay thank you very much for your help ^^

hmm doesn’t seem to fix it i’m still getting the same output when i run localectl list-locales
( and the problem continues : ( )

We have wasted enough time on this.

Please fix your system.