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:

screenshot

Can you help me troubleshoot this?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 3
  • Comments: 20 (4 by maintainers)

Commits related to this issue

Most upvoted comments

Similar issue here. I run Rofi from my sxhkdrc file, which is what BSPWM uses for setting keybinds; that said, when running it from there and not a terminal, I get the following: image

Edit: @nnsee’s suggestion works for me in the terminal (thanks) but doesn’t in sxhkd.

@jjaimealeman Why did you close this? Is it fixed? Please provide solution or re-open the issue.

DAMN! My apologies.

The issue is not closed. I guess I hit the wrong button.

Facing the same issue here.

rofi 1.7.4-1
rofi-emoji 3.0.1-1

image

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-emoji in 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:

rofi -modi emoji -show emoji -emoji-format '{emoji} <span weight="bold">{name}</span>[ <span size="small">({keywords})</span>]'

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.

sxhkdrc parses { and } symbols directly - they have to be prefixed with a backslash, ie \{emoji\}

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>]'