You are not logged in.

#1 2016-08-06 01:28:13

krypt
Member
Registered: 2016-05-15
Posts: 26

Problem Starting Rofi (no locale in X11 locale dir)

Hello,

When I try to run rofi it raises erros about not being able to understand some key combinations like Shift+Insert and it fails to run.

xkbcommon: ERROR: couldn't find a Compose file for locale "tr_TR.UTF8"

A little bit of digging on the internet I found out that "To find a Compose file, xkbcommon looks at the /usr/share/X11/locale/compose.dir file, which contains a fixed list of locales, and at /usr/share/X11/locale/<your locale>/Compose directly; it expects a perfectly-spelled locale to work.

However there is no tr_TR.UTF8 directory in/usr/share/X11/locale and I think this is the root of the problem. But I don't know how to generate that dir. All my locale settings are fine.

Thanks.

Offline

#2 2016-08-06 10:12:07

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Problem Starting Rofi (no locale in X11 locale dir)

Shouldn't it be tr_TR.UTF-8?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2016-08-06 11:03:21

krypt
Member
Registered: 2016-05-15
Posts: 26

Re: Problem Starting Rofi (no locale in X11 locale dir)

LANG=tr_TR.UTF8
LC_CTYPE="tr_TR.UTF8"
LC_NUMERIC="tr_TR.UTF8"
LC_TIME="tr_TR.UTF8"
LC_COLLATE="tr_TR.UTF8"
LC_MONETARY="tr_TR.UTF8"
LC_MESSAGES="tr_TR.UTF8"
LC_PAPER="tr_TR.UTF8"
LC_NAME="tr_TR.UTF8"
LC_ADDRESS="tr_TR.UTF8"
LC_TELEPHONE="tr_TR.UTF8"
LC_MEASUREMENT="tr_TR.UTF8"
LC_IDENTIFICATION="tr_TR.UTF8"
LC_ALL=

Offline

#4 2016-08-06 14:49:53

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Problem Starting Rofi (no locale in X11 locale dir)

This is what the FAQ says:

If you see that in rofi’s output, it is quite likely that your locale is wrong, or at least not perfect.

To find a Compose file, xkbcommon looks at the /usr/share/X11/locale/compose.dir file, which contains a fixed list of locales, and at /usr/share/X11/locale/<your locale>/Compose directly; it expects a perfectly-spelled locale to work.

Wrong example: en_US.utf8
Good example: en_US.UTF-8

https://github.com/DaveDavenport/rofi/w … common-FAQ


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#5 2016-08-07 11:28:10

krypt
Member
Registered: 2016-05-15
Posts: 26

Re: Problem Starting Rofi (no locale in X11 locale dir)

Yes, I know. In fact I pointed it out in the first post. The problem is there is no locale dir for my locale in /usr/share/X11/locale and I do not know hot to generate one.

Offline

#6 2016-08-07 12:56:50

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Problem Starting Rofi (no locale in X11 locale dir)

It's present on mine (it's installed via libx11)

$  pacman -Qo /usr/share/X11/locale/iso8859-9
/usr/share/X11/locale/iso8859-9/ is owned by libx11 1.6.3-1

All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#7 2016-08-07 13:08:01

krypt
Member
Registered: 2016-05-15
Posts: 26

Re: Problem Starting Rofi (no locale in X11 locale dir)

But isn't xkbcommon looking for /usr/share/X11/tr_TR.utf8 ?

Mocp music player also won't start due to locale problems. I began to wonder if there's something wrong with my locale conf. I created another thread but it's been deleted.  Here is my locale settings as of now. Is there something wrong with it?

Thank you for your time.

locale -a

C
en_US.utf8
POSIX
tr_TR
tr_TR.iso88599
tr_TR.utf8
turkish

locale

LANG=tr_TR.utf8
LC_CTYPE="tr_TR.utf8"
LC_NUMERIC="tr_TR.utf8"
LC_TIME="tr_TR.utf8"
LC_COLLATE="tr_TR.utf8"
LC_MONETARY="tr_TR.utf8"
LC_MESSAGES="tr_TR.utf8"
LC_PAPER="tr_TR.utf8"
LC_NAME="tr_TR.utf8"
LC_ADDRESS="tr_TR.utf8"
LC_TELEPHONE="tr_TR.utf8"
LC_MEASUREMENT="tr_TR.utf8"
LC_IDENTIFICATION="tr_TR.utf8"
LC_ALL=

localectl

System Locale: LANG=tr_TR.utf8
       VC Keymap: n/a
      X11 Layout: trq

cat /etc/locale.gen

...
#tr_CY.UTF-8 UTF-8  
#tr_CY ISO-8859-9  
tr_TR.UTF-8 UTF-8  
tr_TR ISO-8859-9  
#ts_ZA UTF-8  
#tt_RU UTF-8  
#tt_RU@iqtelif U
...

Last edited by krypt (2016-08-07 13:08:57)

Offline

#8 2016-08-07 19:29:29

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Problem Starting Rofi (no locale in X11 locale dir)

I use English so I cannot replicate all of this.  It does look like your locale is broken though.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

Board footer

Powered by FluxBB