rofi-emoji: Rofi crashes on Arch Linux unless -emoji-format is set
| Edit from @Mange | See solution below. This happened with Rofi 1.7.4 breaking ABI stability, which requires rofi-emoji to be rebuilt again. Install the latest update from the Arch repos to get it to work again. |
rofi -version
Version: 1.7.4
rofi-emoji
3.0.1-1
I use the emoji plugin many times throughout the day.
Rofi + rofi-emoji is probably my most used function of my system. š
After having done some updates today, I noticed that rofi-emoji fails to run.
I have always used this key combo.
super + ctrl + f
rofi -show emoji -modi emoji
If I run rofi -show emoji -modi emoji directly in the terminal, I get this error:

Can you help me troubleshoot this?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 3
- Comments: 20 (4 by maintainers)
Links to this issue
Commits related to this issue
- Fix emoji picker Instead of emojis, I was getting lines of "Invalid string." Explicitly specifying a format seems to fix it. Related to https://github.com/Mange/rofi-emoji/issues/46 — committed to ellsclytn/dotfiles by ellsclytn 2 years ago
- fix: rofi failing to display emoji modi See: https://github.com/Mange/rofi-emoji/issues/46 — committed to JackCuthbert/dotfiles by JackCuthbert 2 years ago
Similar issue here. I run Rofi from my
sxhkdrcfile, which is what BSPWM uses for setting keybinds; that said, when running it from there and not a terminal, I get the following:Edit: @nnseeās suggestion works for me in the terminal (thanks) but doesnāt in sxhkd.
DAMN! My apologies.
The issue is not closed. I guess I hit the wrong button.
Facing the same issue here.
I had the same issue and installing rofi-emoji-3.0.1-2 fixed it for me. I think its safe to close this issue.
Thank you. Iāve emailed the maintainer in Arch to ask for help.
I think they ājustā need to recompile and release a new pkgrel version of
rofi-emojiin order to fix this.Please donāt close this issue, itās still broken š
sxhkdrc parses
{and}symbols directly - they have to be prefixed with a backslash, ie\{emoji\}Providing the full format string manually works:
Of course, it should use this format string by default when none is provided.
I recompiled the project and now it just worked. Maybe the problem was just that Rofi wasnāt ABI compatible anymoreā¦
Iāll raise this issue with the Arch repos. If anyone here could compile from source and test it in order to confirm this, that would be great.
I will look into this. It should have a default value, and it works for me so I find this very surprising.
Iāll get back to you as soon as I manage to reproduce the problem.
YUP! š THIS IS THE SOLUTION PROVIDED BY @nnsee !
Use this (with escaped curly braces):
rofi -modi emoji -show emoji -emoji-format '\{emoji\} <span weight="bold">\{name\}</span>[ <span size="small">(\{keywords\})</span>]'Instead of this:
rofi -modi emoji -show emoji -emoji-format '{emoji} <span weight="bold">{name}</span>[ <span size="small">({keywords})</span>]'