Skip to content

[warning] module cffi/niri-taskbar: Disabling module "cffi/niri-taskbar", Failed to initialize C ABI module #18

@hboetes

Description

@hboetes

I've built & installed waybar from source, straight from git.

I've built and installed the niri-taskbar with the following recipe:

# Description:  niri module for waybar                                                                                                                                        
# URL:          https://github.com/lawngnome/niri-taskbar.git                                                                                                                 
# Dependencies: waybar gtk3+-devel                                                                                                                                            

name=niri-taskbar
version=git
release=1
source=(
    https://github.com/lawngnome/niri-taskbar.git
)

build()
{
    cd $name

    command -v cargo >& /dev/null || export PATH=$PATH:$HOME/.cargo/bin
    cargo clean
    cargo build --release
    install -m 555 -D target/release/libniri_taskbar.so     $PKG/usr/local/lib64/libniri_taskbar.so
}

Configured waybar like so:

head /home/han/.config/waybar/niri
{
    "cffi/niri-taskbar": {
        "module_path": "/usr/local/lib64/libniri_taskbar.so",
        "notifications": true,
        "show_all_outputs": true,
    },
    "layer": "top",
    "position": "top",
    "height": 17,
    "modules-left": ["cffi/niri-taskbar"],
...

And running waybar goes like this:

%  <main> /usr/local/bin/waybar -c /home/han/.config/waybar/niri

(waybar:672677): dbind-WARNING **: 10:41:48.527: Couldn't connect to accessibility bus: Failed to connect to socket /run/user/1020/at-spi/bus_0: No such file or directory

(waybar:672677): Gtk-WARNING **: 10:41:48.531: Theme parsing error: gtk.css:3:14: 'max-height' is not a valid property name
[2025-09-20 10:41:48.557] [info] Using configuration file /home/han/.config/waybar/niri
[2025-09-20 10:41:48.604] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
[2025-09-20 10:41:48.604] [info] Using CSS file /home/han/.config/waybar/style.css
TaskbarModule init error: invalid type: boolean `true`, expected struct Notifications
[2025-09-20 10:41:48.615] [warning] module cffi/niri-taskbar: Disabling module "cffi/niri-taskbar", Failed to initialize C ABI module
[2025-09-20 10:41:48.624] [warning] Waybar has been built without rfkill support.
[2025-09-20 10:41:48.773] [info] Bar configured (width: 1920, height: 17) for output: eDP-1

ldd /usr/local/lib64/libniri_taskbar.so |grep found returns nothing.

What is going wrong here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions