#failed to set locale / no locale support for rofi/dmenu (qt apps in general)

5 messages · Page 1 of 1 (latest)

fresh ermine
#

doing rofi -show outputs
1481: Rofi-WARNING **: Failed to set locale

running dmenu shows
warning: no locale support

running locale shows
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_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=

i dont remember but a bit ago i was using yay to install something and it logged
Detected locale with C with character encoding ANSI X3.4 1968 instead of utf-8, switching to c.utf-8 since qt depends on utf-8

^ this is likely the issue but idk how to fix it

checking forums this seems to only happen on kde desktops. I had kde installed but i removed it fully and replaced it with i3 (xinitrc file to start) and tty.

things ive tried so far:
re-running sudo locale-gen
editing /etc/locale.conf to include LC_ALL=en_US.UTF-8, LC_CTYPE=C.UTF-8
checking vconsole.conf (yes its set up)

also:

[comeondowntoflorida@arch ~]$ sudo locale-gen
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
Generating locales...
es_US.UTF-8... done
Generation complete.

[comeondowntoflorida@arch ~]$ 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
C.utf8
POSIX
es_US.utf8

[comeondowntoflorida@arch ~]$ localectl
System Locale: LANG=en_US.UTF-8
LC_CTYPE=C.UTF-8
VC Keymap: us
X11 Layout: (unset)

yeah anyways no qt app will run pls help

#

ok update

#

running qterminal (so a qt app) runs

#

but rofi and dmenu refuse??????

fresh ermine
#

SOLVED