Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Compose file and compose table #582

Closed
Kudlaty01 opened this issue Mar 28, 2017 · 31 comments
Closed

Problem with Compose file and compose table #582

Kudlaty01 opened this issue Mar 28, 2017 · 31 comments

Comments

@Kudlaty01
Copy link

Version

1.3.1
compiled manually

Configuration

https://gist.github.com/Kudlaty01/fe45655dc8bf20595713989e17a036bb

Launch Command

rofi

Steps to reproduce

  • (Optional) set locale from pl_PL.utf8 by export LANG=pl_PL.UTF-8 (or en_US.UTF-8)
  • run rofi

What behaviour you see

xkbcommon: ERROR: couldn't find a Compose file for locale "pl_PL.UTF-8"
Failed to get keyboard compose table. Trying to limp on.
Rofi daemon mode is now removed.
Please use your window manager binding functionality or xbindkeys to replace it.

What behaviour you expect to see

  • running rofi
@Kudlaty01 Kudlaty01 changed the title Problem with execution and Problem with Compose file and compose table Mar 28, 2017
@Kudlaty01
Copy link
Author

I have even found out that locale pl_PL.utf8 is defined as an alias in /usr/share/X11/locale/locale.alias, but I don't know if it may be useful in that case.
Just to share the info.

@DaveDavenport
Copy link
Collaborator

Have you looked at: https://github.com/DaveDavenport/rofi/wiki/xkbcommon-FAQ#compose
This is also an error by xkbcommon, not really rofi.

@DaveDavenport
Copy link
Collaborator

btw. running rofi without arguments will never work. please read manpage.

@DaveDavenport
Copy link
Collaborator

duplicate #400

@sardemff7
Copy link
Collaborator

Actually, considering the comment about locale.alias, I checked again what should happen.
Using pl_PL.utf8 should work (tested it locally with en_US.utf8), so I will update the FAQ. But I need some more information to update it properly.

@Kudlaty01 can you give me the output of these commands:

LANG=pl_PL.utf8 strace rofi 2>&1|grep /usr/share/X11/locale
grep pl_PL /usr/share/X11/locale/locale.alias
grep pl_PL /usr/share/X11/locale/compose.dir
ls -ld /usr/share/X11/locale/iso8859-2/Compose

And also, which distribution are you using? (I will need some info about a few packages.)

@Kudlaty01
Copy link
Author

@DaveDavenport I have read that FAQ and it didn't help me much as it was only alias, but it made me try with different languages even,
I have realized that running with no arguments won't work when I have first tried to run it with -show argument. However, won't run on i3 with multiple, comma separated -modi, for me at least.

@Kudlaty01
Copy link
Author

@sardemff7 I have been searching through these files yesterday, the output of these commands is as follows (tabs should have been looking better):

pl pl_PL.ISO8859-2
pl.UTF-8 pl_PL.UTF-8
pl_PL pl_PL.ISO8859-2
pl_PL.iso88592 pl_PL.ISO8859-2
pl_PL.ISO-8859-2 pl_PL.ISO8859-2
pl_PL.utf8 pl_PL.UTF-8
polish pl_PL.ISO8859-2
pl: pl_PL.ISO8859-2
pl.UTF-8: pl_PL.UTF-8
pl_PL: pl_PL.ISO8859-2
pl_PL.iso88592: pl_PL.ISO8859-2
pl_PL.ISO-8859-2: pl_PL.ISO8859-2
pl_PL.utf8: pl_PL.UTF-8
polish: pl_PL.ISO8859-2
kudlaty01@mcdebian:~$ grep pl_PL /usr/share/X11/locale/compose.dir
iso8859-2/Compose pl_PL.ISO8859-2
en_US.UTF-8/Compose pl_PL.UTF-8
iso8859-2/Compose: pl_PL.ISO8859-2
en_US.UTF-8/Compose: pl_PL.UTF-8

I am running Debian Jessie currently with i3wm, but xkbcommon has been compiled to meet the requirements, had also to update bison for the sake of that compilation.
Funny thing, I've compiled xkbcommon 0.5.0, but dpkg -l tells me there's 0.4.3-2, but probably that's it's exclusive knowledge.
What packages shall I provide info about?

@DaveDavenport
Copy link
Collaborator

I have realized that running with no arguments won't work when I have first tried to run it with -show argument

Just double checking.

I have realized that running with no arguments won't work when I have first tried to run it with -show argument. However, won't run on i3 with multiple, comma separated -modi, for me at least.

This is an i3 escaping issue. I'll see if I can allow a second separator that does not cause so much problems with i3. see 6.1. Executing applications (exec) in the i3 manual.

@Kudlaty01
Copy link
Author

@DaveDavenport
This is an i3 escaping issue. I'll see if I can allow a second separator that does not cause so much problems with i3. see 6.1. Executing applications (exec) in the i3 manual.
If I'd read that point (I'm beginning my adventure with i3wm currently) I'd quote the whole command. That did the trick just a moment ago :)
What about daemonization of rofi? is it possible or do I have to execute a new instance every time?

@DaveDavenport
Copy link
Collaborator

For the daemonizing please see other bug reports (is also off-topic to this bug).
In short: Hotkey binding is done by i3wm, this is not rofi its task. Rofi starts up very quickly (30 ms on my arch laptop) no point keeping it running constantly duplicating functionality from the window manager.

@sardemff7
Copy link
Collaborator

sardemff7 commented Mar 29, 2017

@Kudlaty01
Where is the output of LANG=pl_PL.utf8 strace -e open rofi 2>&1|grep /usr/share/X11/locale ?

Also, can you check that the package libx11-data is installed, and the file /usr/share/X11/locale/en_US.UTF-8/Compose exists.

@Kudlaty01
Copy link
Author

Kudlaty01 commented Mar 31, 2017

Sorry for the delay, a lot of work recently.
@DaveDavenport Not that I've been complaining, I was only worried if I am running it the proper way.
@sardemff7

Where is the output of LANG=pl_PL.utf8 strace -e open rofi 2>&1|grep /usr/share/X11/locale

It didn't produce any output

libx11-data is installed in version 2:1.6.2-3
The /usr/share/X11/locale/en_US.UTF-8/Compose does exist

@sardemff7
Copy link
Collaborator

Hum, and these two:
LANG=pl_PL.utf8 rofi
LANG=en_US.utf8 strace -e open rofi 2>&1|grep /usr/share/X11/locale

@Kudlaty01
Copy link
Author

LANG=pl_PL.utf8 rofi produced:

xkbcommon: ERROR: couldn't find a Compose file for locale "pl_PL.utf8"
Failed to get keyboard compose table. Trying to limp on.
Rofi daemon mode is now removed.
Please use your window manager binding functionality or xbindkeys to replace it.

LANG=en_US.utf8 strace -e open rofi 2>&1|grep /usr/share/X11/locale produced:
-undeniable and almost ultimate nothing

@sardemff7
Copy link
Collaborator

Let’s try LANG=en_US.utf8 strace -e open rofi? I wonder if it’s strace not working or something else…

@Kudlaty01
Copy link
Author

That'll be:
LANG=en_US.utf8 strace -e open rof:

open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libglib-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libxcb-util.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libxcb-xkb.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/usr/local/lib/libxkbcommon-x11.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/local/lib/libxkbcommon.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libxcb-ewmh.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libxcb-icccm.so.4", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libxcb-xrm.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libxcb-randr.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libxcb-xinerama.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libxcb.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libstartup-notification-1.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libpango-1.0.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libcairo.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libxcb-render.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libffi.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libpcre.so.3", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libXau.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libXdmcp.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libX11-xcb.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libX11.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libfontconfig.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libfreetype.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libthai.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libpixman-1.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libpng12.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libxcb-shm.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libXrender.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libXext.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libharfbuzz.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libexpat.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libdatrie.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/libgraphite2.so.3", O_RDONLY|O_CLOEXEC) = 3
open("/proc/filesystems", O_RDONLY) = 3
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
open("/var/run/gdm3/auth-for-kudlaty01-I5MyCn/database", O_RDONLY) = 4
open("/usr/local/share/X11/locale/locale.alias", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/kudlaty01/.XCompose", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/share/X11/locale/compose.dir", O_RDONLY) = -1 ENOENT (No such file or directory)
xkbcommon: ERROR: couldn't find a Compose file for locale "en_US.utf8"
Failed to get keyboard compose table. Trying to limp on.
open("/home/kudlaty01/.Xdefaults-mcdebian", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/kudlaty01/.config/rofi/config", O_RDONLY) = 5
open("/usr/share/rofi/themes//Monokai.theme", O_RDONLY) = 5
open("/usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache", O_RDONLY) = 5
open("/usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so", O_RDONLY|O_CLOEXEC) = 5
open("/home/kudlaty01/.config/rofi/config", O_RDONLY) = 5
open("/usr/share/rofi/themes//Monokai.theme", O_RDONLY) = 5
open("/run/user/1000/rofi.pid", O_RDWR|O_CREAT, 0600) = 6
open("/etc/fonts/fonts.conf", O_RDONLY|O_CLOEXEC) = 7
open("/etc/fonts/conf.d/10-powerline-symbols.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/11-lcdfilter-default.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/20-unhint-small-dejavu-lgc-sans-mono.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/20-unhint-small-dejavu-lgc-sans.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/20-unhint-small-dejavu-lgc-serif.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/20-unhint-small-dejavu-sans-mono.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/20-unhint-small-dejavu-sans.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/20-unhint-small-dejavu-serif.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/20-unhint-small-vera.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/30-0-google-crosextra-caladea-fontconfig.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/30-0-google-crosextra-carlito-fontconfig.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/30-metric-aliases.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/30-urw-aliases.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/31-cantarell.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/40-nonlatin.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/45-latin.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/49-sansserif.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/50-enable-terminus.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/50-user.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/51-local.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/57-dejavu-sans-mono.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/57-dejavu-sans.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/57-dejavu-serif.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/58-dejavu-lgc-sans-mono.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/58-dejavu-lgc-sans.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/58-dejavu-lgc-serif.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/60-latin.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/65-fonts-lmodern.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/65-fonts-persian.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/65-fonts-texgyre.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/65-nonlatin.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/69-droid-sans-fallback.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/69-unifont.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/70-yes-bitmaps.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/80-delicious.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/90-fonts-linux-libertine.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/90-synthetic.conf", O_RDONLY|O_CLOEXEC) = 9
open("/etc/fonts/conf.d/99pdftoopvp.conf", O_RDONLY|O_CLOEXEC) = 9
open("/usr/share/fonts", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//3830d5c3ddfd5cd38a049b759396e72e-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/local/share/fonts", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//4c599c202bc5c08e2d34565a40eac3b2-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/home/kudlaty01/.local/share/fonts", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//cb9f808df765055b5b6012e84ffbd964-le64.cache-4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/home/kudlaty01/.cache/fontconfig//cb9f808df765055b5b6012e84ffbd964-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/home/kudlaty01/.fonts", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//9340dfc3ff2a43454a4a17c1ef33e19c-le64.cache-4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/home/kudlaty01/.cache/fontconfig//9340dfc3ff2a43454a4a17c1ef33e19c-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/texmf/fonts/opentype/public/lm", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//467c019e582ee353435ea5c21d137ef6-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/texmf/fonts/opentype/public/lm-math", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//e0aa53bcfa504e64f87823c16bc01eb6-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/texmf/fonts/opentype/public/tex-gyre", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//8f02d4cb045bd6ce15663e43f347c9f8-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/texmf/fonts/opentype/public/tex-gyre-math", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//16326683038b281783a0ef8c680e3a10-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/FiraCode", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//793a8b9875668870ffc20a6f511014ac-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/X11", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//c855463f699352c367813e37f3f70ea7-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/cmap", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//57e423e26b20ab21d0f2f29c145174c3-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/opentype", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//573ec803664ed168555e0e8b6d0f0c7f-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/truetype", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//7ef2298fde41cc6eeb7af42e48b7d293-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/type1", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//d82eb4fd963d448e2fcb7d7b793b5df3-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/FiraCode/eot", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//ab2f96f757149d3f2029c6cc9ad037b8-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/FiraCode/otf", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//7a51d671f749877547e267dd17c48097-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/FiraCode/ttf", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//acf54291041b9f88016c1abc4c6476b5-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/FiraCode/woff", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//68a27524beb662ceffb040c873ba939e-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/FiraCode/woff2", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//5805bebd7d059ece20a40d5050b15eed-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/X11/100dpi", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//21a99156bb11811cef641abeda519a45-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/X11/75dpi", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//eeebfc908bd29a90773fd860017aada4-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/X11/Type1", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//e13b20fdb08344e0e664864cc2ede53d-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/X11/encodings", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//707971e003b4ae6c8121c3a920e507f5-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/X11/misc", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//cabbd14511b9e8a55e92af97fb3a0461-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/X11/util", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//fe547fea3a41b43a38975d292a2b19c7-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/cmap/adobe-cns1", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//f1f2465696798768e9653f19e17ccdc8-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/cmap/adobe-gb1", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//95530828ff6c81d309f8258d8d02a23e-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/cmap/adobe-japan1", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//d3e5c4ee2ceb1fc347f91d4cefc53bc0-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/cmap/adobe-japan2", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//e52a45a1c8c8fe895fc0fc8c4e6999b8-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/cmap/adobe-korea1", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//188ac73a183f12857f63bb60a4a6d603-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/opentype/cantarell", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//62f91419b9ebdb6975e7e41ab6412357-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/opentype/linux-libertine", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//53d14c92082a93e67d5078324eb314ca-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/opentype/mathjax", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//d0972c3d32f097851eb916381fc38920-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/truetype/crosextra", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//246184dc75a16901ca37d96895904249-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/truetype/dejavu", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//d589a48862398ed80a3d6066f4f56f4c-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/truetype/droid", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//3f7329c5293ffd510edef78f73874cfd-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/truetype/freefont", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//d52a8644073d54c13679302ca1180695-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/truetype/gentium", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//4b14b093aebc79c320de5e86ae1d3314-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/truetype/gentium-basic", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//e49e89034d371f0f9de17aab02136486-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/truetype/liberation", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//3047814df9a2f067bd2d96a2b9c36e5a-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/truetype/lyx", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//c57959a16110560c8d0fcea73374aeeb-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/truetype/msttcorefonts", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//365b55f210c0a22e9a19e35191240f32-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/truetype/openoffice", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//4794a0821666d79190d59a36cb4f44b5-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/truetype/ttf-bitstream-vera", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//de156ccd2eddbdc19d37a45b8b2aac9c-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/truetype/ttf-dejavu", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//6d41288fd70b0be22e8c3a91e032eec0-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/truetype/ttf-liberation", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//6eb3985aa4124903f6ff08ba781cd364-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/type1/gsfonts", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//945677eb7aeaf62f1d50efc3fb3ec7d8-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/type1/texlive-fonts-recommended", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//6aa41aa22e18b8fa06a12da28ea9c28b-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/X11/encodings/large", O_RDONLY|O_CLOEXEC) = 7
open("/var/cache/fontconfig//6333f38776742d18e214673cd2c24e34-le64.cache-4", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf", O_RDONLY) = 7
open("/usr/share/locale/locale.alias", O_RDONLY) = 7
open("/etc/pango/pangorc", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 7
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/charset.alias", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/kudlaty01/.config/pango/pangorc", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/messages.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/messages.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/messages.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/messages.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/pango/1.8.0/module-files.d", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/pango/1.8.0/modules.cache", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/pango/pango.modules", O_RDONLY) = -1 ENOENT (No such file or directory)
Rofi daemon mode is now removed.
Please use your window manager binding functionality or xbindkeys to replace it.
+++ exited with 0 +++

@sardemff7
Copy link
Collaborator

@DaveDavenport spotted out that libxkbcommon is in /usr/local, not the same prefix as the libx11-data files.
So @Kudlaty01, how did you install libxkbcommon?

@Kudlaty01
Copy link
Author

Kudlaty01 commented Mar 31, 2017

@sardemff7 I've installed libxkbcommon by manual sources compilation for version 0.5.0 as my distro offers only 0.4.3-2. I also had to upgrade my bison (or yacc). Shall I recompile libxkbcommon with /usr prefix?

@sardemff7
Copy link
Collaborator

Yes. I’ve update the FAQ to reflect that.
Since you’re using Debian, you can use the i3 repository (found here) that will provide a newer libxkbcommon.

@Kudlaty01
Copy link
Author

In their instructions they say that they strongly don't recommend using their repositories, but the rather distro testing repositories if any at all. Wouldn't that break some of my dependencies? I am not quite sure how can I tell apt (I prefer apt-fast) to prefer the stable version when testing is also listed. And unfortunately no backports for stable available for this package..

@sardemff7
Copy link
Collaborator

sardemff7 commented Mar 31, 2017

If you still prefer to build it yourself, then I found another solution, safer. It’ll still install libxkbcommon in /usr/local but will fix the lookup of other files:
./configure --with-x-locale-root=/usr/data/X11/locale --with-xkb-config-root=/usr/share/X11/xkb (as updated in the FAQ too).

Please confirm that fixes it once you’re done :-)

@DaveDavenport
Copy link
Collaborator

I think this can be closed as a rofi bug.

@Kudlaty01
Copy link
Author

Kudlaty01 commented Apr 2, 2017

@sardemff7 I am terribly sorry for the delay
after installation with ./configure --prefix=/usr/local:

rofi: /usr/lib/x86_64-linux-gnu/libxkbcommon-x11.so.0: no version information available (required by rofi)
rofi: /usr/lib/x86_64-linux-gnu/libxkbcommon.so.0: no version information available (required by rofi)
rofi: relocation error: rofi: symbol xkb_compose_table_new_from_locale, version V_0.5.0 not defined in file libxkbcommon.so.0 with link time reference

@Kudlaty01
Copy link
Author

@sardemff7 after your suggestion:

make all-am
make[1]: Wejście do katalogu '/home/kudlaty01/Pobrane/Software/i3/libxkbcommon/libxkbcommon-0.5.0'
make[1]: Opuszczenie katalogu '/home/kudlaty01/Pobrane/Software/i3/libxkbcommon/libxkbcommon-0.5.0'
make install-am
make[1]: Wejście do katalogu '/home/kudlaty01/Pobrane/Software/i3/libxkbcommon/libxkbcommon-0.5.0'
make[2]: Wejście do katalogu '/home/kudlaty01/Pobrane/Software/i3/libxkbcommon/libxkbcommon-0.5.0'
/bin/mkdir -p '/usr/local/lib'
/bin/bash ./libtool --mode=install /usr/bin/install -c libxkbcommon.la libxkbcommon-x11.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libxkbcommon.so.0.0.0 /usr/local/lib/libxkbcommon.so.0.0.0
libtool: install: (cd /usr/local/lib && { ln -s -f libxkbcommon.so.0.0.0 libxkbcommon.so.0 || { rm -f libxkbcommon.so.0 && ln -s libxkbcommon.so.0.0.0 libxkbcommon.so.0; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libxkbcommon.so.0.0.0 libxkbcommon.so || { rm -f libxkbcommon.so && ln -s libxkbcommon.so.0.0.0 libxkbcommon.so; }; })
libtool: install: /usr/bin/install -c .libs/libxkbcommon.lai /usr/local/lib/libxkbcommon.la
libtool: install: error: cannot install `libxkbcommon-x11.la' to a directory not ending in /usr/lib
Makefile:1030: polecenia dla obiektu 'install-libLTLIBRARIES' nie powiodły się
make[2]: *** [install-libLTLIBRARIES] Błąd 1
make[2]: Opuszczenie katalogu '/home/kudlaty01/Pobrane/Software/i3/libxkbcommon/libxkbcommon-0.5.0'
Makefile:2109: polecenia dla obiektu 'install-am' nie powiodły się
make[1]: *** [install-am] Błąd 2
make[1]: Opuszczenie katalogu '/home/kudlaty01/Pobrane/Software/i3/libxkbcommon/libxkbcommon-0.5.0'
Makefile:2103: polecenia dla obiektu 'install' nie powiodły się
make: *** [install] Błąd 2

@sardemff7
Copy link
Collaborator

  1. Build libxkbcommon with ./configure --with-x-locale-root=/usr/data/X11/locale --with-xkb-config-root=/usr/share/X11/xkb (default prefix being /usr/local, your error probably comes from some leftovers, so make sure to start from a fresh tarball extract.))
  2. Install it.
  3. Make sure /usr/local/lib is present in /etc/ld.so.conf. If not, add it and run ldconfig (as root).
  4. Enjoy

@Kudlaty01
Copy link
Author

Kudlaty01 commented Apr 3, 2017

@sardemff7 every step fulfilled, libxkbcommon 0.5.0 configured with given options, then made and installed. /usr/local/lib is present in file /etc/ld.so.conf.d/libc.conf.
When running parameterless I've got:

xkbcommon: ERROR: couldn't find a Compose file for locale "pl_PL.utf8"
Failed to get keyboard compose table. Trying to limp on.
Rofi daemon mode is now removed.
Please use your window manager binding functionality or xbindkeys to replace it.

Rofi is running with specified options anyway, but still getting these messages

@sardemff7
Copy link
Collaborator

Can you run LANG=pl_PL.utf8 strace -e open rofi 2>&1|grep -E 'libxkbcommon|X11/(locale|xkb)' just to be sure? But you may have to file a bug against xkbcommon directly at this point. :-/

@Kudlaty01
Copy link
Author

@sardemff7 As the output says:

open("/usr/local/lib/libxkbcommon-x11.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/local/lib/libxkbcommon.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/usr/data/X11/locale/locale.alias", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/data/X11/locale/compose.dir", O_RDONLY) = -1 ENOENT (No such file or directory)

Shall I file an issue even when not using the latest versions? Also there have been modification made

@sardemff7
Copy link
Collaborator

sardemff7 commented Apr 3, 2017

My bad, I mistyped… it’s /usr/share/X11/locale: ./configure --with-x-locale-root=/usr/share/X11/locale --with-xkb-config-root=/usr/share/X11/xkb
Then it should work perfectly :-)

@Kudlaty01
Copy link
Author

This has fixed all my problems. I am practically speechless. Thank you very much for your support, advices and time sacrificed to help me.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants