JakeStanger/ironbar

[Tray] Does not work properly with other tray hosts // Can't install using `cargo`, and didn't start after building from source

Closed this issue · 9 comments

Describe the bug

A clear and concise description of what the bug is.

Due to ironbar not available on distro repos, I tried to install with cargo install ironbar but didn't compile

error[E0432]: unresolved import `nix::fcntl::OFlag`
 --> /home/salo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ironbar-0.15.1/src/clients/wayland/wlr_data_control/offer.rs:3:5
  |
3 | use nix::fcntl::OFlag;
  |     ^^^^^^^^^^^^^^^^^ no `OFlag` in `fcntl`

error[E0432]: unresolved import `nix::unistd::pipe2`
    --> /home/salo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ironbar-0.15.1/src/clients/wayland/wlr_data_control/offer.rs:4:26
     |
4    | use nix::unistd::{close, pipe2};
     |                          ^^^^^
     |                          |
     |                          no `pipe2` in `unistd`
     |                          help: a similar name exists in the module: `pipe`
     |
note: found an item that was configured out
    --> /home/salo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nix-0.27.1/src/unistd.rs:1233:8
     |
1233 | pub fn pipe2(flags: OFlag) -> Result<(RawFd, RawFd)> {
     |        ^^^^^
     = note: the item is gated behind the `fs` feature

error[E0432]: unresolved imports `nix::fcntl::fcntl`, `nix::fcntl::F_GETPIPE_SZ`, `nix::fcntl::F_SETPIPE_SZ`
   --> /home/salo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ironbar-0.15.1/src/clients/wayland/wlr_data_control/mod.rs:13:18
    |
13  | use nix::fcntl::{fcntl, F_GETPIPE_SZ, F_SETPIPE_SZ};
    |                  ^^^^^  ^^^^^^^^^^^^  ^^^^^^^^^^^^ no `F_SETPIPE_SZ` in `fcntl`
    |                  |      |
    |                  |      no `F_GETPIPE_SZ` in `fcntl`
    |                  no `fcntl` in `fcntl`
    |
    = help: consider importing this module instead:
            nix::fcntl
note: found an item that was configured out
   --> /home/salo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nix-0.27.1/src/fcntl.rs:509:8
    |
509 | pub fn fcntl(fd: RawFd, arg: FcntlArg) -> Result<c_int> {
    |        ^^^^^
    = note: the item is gated behind the `fs` feature

error[E0308]: mismatched types
   --> /home/salo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ironbar-0.15.1/src/clients/compositor/hyprland.rs:156:51
    |
156 |                     let name = get_workspace_name(workspace_type);
    |                                ------------------ ^^^^^^^^^^^^^^ expected `WorkspaceType`, found `WorkspaceDestroyedEventData`
    |                                |
    |                                arguments to this function are incorrect
    |
note: function defined here
   --> /home/salo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ironbar-0.15.1/src/clients/compositor/hyprland.rs:247:4
    |
247 | fn get_workspace_name(name: WorkspaceType) -> String {
    |    ^^^^^^^^^^^^^^^^^^ -------------------

Some errors have detailed explanations: E0308, E0432.
For more information about an error, try `rustc --explain E0308`.
error: could not compile `ironbar` (bin "ironbar") due to 4 previous errors
error: failed to compile `ironbar v0.15.1`, intermediate artifacts can be found at `/tmp/cargo-installuwAhi3`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Then when building from source it compiles but doesn't start

./target/release/ironbar
2024-07-21T01:58:31.046378Z  INFO ironbar: 132: Ironbar version 0.16.0-pre
2024-07-21T01:58:31.046402Z  INFO ironbar: 133: Starting application
2024-07-21T01:58:31.146507Z  INFO ironbar::ipc::server: 39: Starting IPC on /run/user/1000/ironbar-ipc.sock
2024-07-21T01:58:31.150016Z  INFO ironbar::bar: 118: Initializing bar 'soironbatop' on 'eDP-1'
2024-07-21T01:58:31.207793Z ERROR ironbar: 220: 
   0: zbus error
   1: name already taken on the bus

Location:
   src/clients/mod.rs:121

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
2024-07-21T01:58:31.292942Z  WARN ironbar::image::provider: 131: Failed to find image: com.sayonara-player.Sayonara
^C2024-07-21T01:58:35.139859Z  INFO ironbar: 190: Shutting down

System information:

  • Distro: openSuse tumblweed
  • Compositor: labwc
  • Ironbar version: 0.16.0-pre

Configuration

Share your bar configuration and stylesheet as applicable:

Config
name: soironbatop
anchor_to_edges: true
icon_theme: breeze-dark
position: top
height: 20
popup_gap: 0
start:
  - type: label
    name: 'reload-conf'
    label: 
    tooltip: 'Reload bar configuration'
    on_click_left: 'ironbar reload'
  - name: sosep
    label: '|'
    type: label
  - type: custom
    name: soworkspace
    bar:
      - type: box
        widgets:
        - type: label
          label: '1'
          class: ws-lbl
          tooltip: 'Go to workspace 1'
          on_click_left: 'wtype -M win -P F1'
        - type: label
          label: '2'
          class: ws-lbl
          tooltip: 'Go to workspace 2'
          on_click_left: 'wtype -M win -P F2'
        - type: label
          label: '3'
          class: ws-lbl
          tooltip: 'Go to workspace 3'
          on_click_left: 'wtype -M win -P F3'
        - type: label
          label: '4'
          class: ws-lbl
          tooltip: 'Go to workspace 4'
          on_click_left: 'wtype -M win -P F4'
  - name: sosep
    label: '|'
    type: label
  - icon_size: 18
    show_icons: true
    show_names: false
    type: launcher
  - name: sosep
    label: '|'
    type: label
  - name: focused-window
    type: focused
    show_icon: true
    show_title: true
    icon_size: 16
    truncate: end
end:
  - name: sosep
    label: '|'
    type: label
  - music_dir: /media/SDisque/Disque-S/Audio
    player_type: mpris
    format: ''
    show_status_icon: true
    icon_size: 14
    type: music
    truncate:
      max_length: 100
      mode: end
  - format:
      -  {cpu_percent}% | {temp_c:coretemp-Package-id-0}°C
      -  {memory_used} GB ({memory_percent}%)
    type: sys_info
    interval:
      cpu: 1
      memory: 30
      temps: 5
  - name: sosep
    label: '|'
    type: label
  - class: sovolume
    tooltip: Volume
    type: custom
    bar:
      - name: sovolume-btn
        on_click: popup:toggle
        label: '{{so-volumeicon.sh}}'
        type: button
    popup:
      - orientation: v
        type: box
        widgets:
          - label: Volume Settings
            name: header
            type: label
          - name: sovol-box
            type: box
            orientation: h
            widgets:
              - type: box
                orientation: v
                class: vol-box
                widgets:
                  - type: label
                    label: 'Speakers:'
                    class: vol-label
                  - type: label
                    label: 'Microphone:'
                    class: vol-label
              - type: box
                class: vol-box
                orientation: v
                widgets:
                  - class: vol-slider
                    tooltip: Change Volume
                    type: slider
                    orientation: h
                    max: 100
                    on_change: '!iron-volume.sh sink set volume ${0}%'
                    show_label: true
                    length: 150
                    value: |-
                        iron-volume.sh sink get volume
                    step: 5
                  - class: vol-slider
                    tooltip: Change Volume
                    type: slider
                    orientation: h
                    max: 100
                    length: 150
                    step: 5
                    show_label: true
                    value: |-
                        iron-volume.sh source get volume
                    on_change: '!iron-volume.sh source set volume ${0}%'
              - type: box
                orientation: v
                class: vol-box
                widgets:
                  - type: button
                    class: vol-btn
                    label: '{{iron-volume.sh sink get mute}}'
                    on_click: '!iron-volume.sh sink set mute'
                  - type: button
                    class: vol-btn
                    label: '{{iron-volume.sh source get mute}}'
                    on_click: '!iron-volume.sh source set mute'
  - format: '{percentage}%'
    icon_size: 14
    tooltip: 'UPower'
    type: upower
  - max_items: 10
    type: clipboard
  - direction: left_to_right
    type: tray
  - format: '%H:%M — %a %d-%m'
    format_popup: |-
      %H:%M
      %B %d-%m
    type: clock
  - class: power-menu
    tooltip: 'Up: {{30000:uptime | cut -d'','' -f1 | cut -d'' '' -f5-}}'
    type: label
    label: 
    on_click_left: wlogout -r 5 -c 5

Styles
@define-color color_bg #31363B;
@define-color color_bg_dark grey; /* #1c1c1c;*/
@define-color color_border #424242;
@define-color color_border_active #3daee9; /*rgb(61,174,233)*/
@define-color color_text #FBFBFB;
@define-color color_urgent #8f0a0a;

/* -- base styles -- */

* {
    font-family: Noto Sans Nerd Font, sans-serif;
    font-size: 12px;
    border: none;
    border-radius: 0;
}

box, menubar, button {
    background-color: @color_bg;
    background-image: none;
    box-shadow: none;
    padding: 0;
}

button, label {
    color: @color_text;
}

button:hover {
/*     background-color: @color_bg_dark; */
    background-color: @color_bg;
}

scale trough {
    min-width: 1px;
    min-height: 2px;

}

scale trough highlight  {
    background-color: @color_border_active;
    background-image: none;
    /*background-clip: content-box;*/
}

scale slider {
    background-color: @color_text;
}

#bar {
    border-bottom: 1px solid @color_bg_dark ;
    padding: 2px 5px 2px 5px;
}

.popup {
    border: 1px solid @color_border;
    padding: 1em;
    border-radius: 5px;
}


/* -- clipboard -- */

.clipboard {
    margin-left: 5px;
    /*font-size: 1.1em;*/
    font-size: 1em;
}

.popup-clipboard .item {
    padding-bottom: 0.3em;
    /*border-bottom: 1px solid @color_border;  When bar in in bottom screen*/
    border-top: 1px solid @color_border;
}


/* -- clock -- */

.clock {
    font-weight: bold;
    margin: 0 5px;
}

.popup-clock .calendar-clock {
    color: @color_text;
    font-size: 2em;
    padding-bottom: 0.1em;
}

.popup-clock .calendar {
    background-color: @color_bg;
    color: @color_text;
}

.popup-clock .calendar .header {
    padding-top: 1em;
    border-top: 1px solid @color_border;
    font-size: 1.5em;
}

.popup-clock .calendar:selected {
    background-color: @color_border_active;
}


/* -- launcher -- */

.launcher .item {
    margin: 0 3px;
    padding: 0 3px;
}

.launcher .item:hover {
     background-color: @color_bg_dark;
}

.launcher .ifix examtem:not(.focused):hover {
    background-color: @color_bg_dark;
}

.launcher .open {
    border-bottom: 1px solid @color_text;
}

.launcher .focused {
    border-bottom: 2px solid @color_border_active;
/*     background-color: @color_bg_dark; */
}

.launcher .urgent {
    border-bottom-color: @color_urgent;
}

.popup-launcher {
    padding: 0;
}

.popup-launcher .popup-item:not(:first-child) {
    border-top: 1px solid @color_border;
}


/* -- music -- */

.music {
    margin: 0 5px
}

.music:hover * {
    background-color: @color_bg_dark;
}

.popup-music  {
    border-radius: 5px;
}

.popup-music .album-art {
    margin-right: 1em;
}

.popup-music .icon-box {
    margin-right: 0.4em;
}

.popup-music .title .icon, .popup-music .title .label {
    font-size: 1.7em;
}

.popup-music .controls *:disabled {
    color: @color_border;
}

.popup-music .controls *  {
    font-size: 1.2em;
}

.popup-music .volume .slider slider {
    border-radius: 100%;
    color: @color_text;
}

.popup-music .volume .icon {
    margin-left: 4px;
    font-size: 1.2em;
}

.popup-music .progress .slider slider {
    border-radius: 100%;

}

/* -- script -- */

.script {
    padding-left: 10px;
}


/* -- sys_info -- */

.sysinfo {
    margin: 0 5px;
}

.sysinfo .item {
    margin-left: 2px;
}

/* -- tray -- */

.tray {
    margin: 0 5px 0 5px;
}
.tray .item {
    padding: 2px 3px;
}
.tray .item:hover {
    background-color: rgba(61,174,233, 0.5);
}

/* -- workspaces -- */

.workspaces .item.focused {
    box-shadow: inset 0 -3px;
    background-color: @color_bg_dark;
}

.workspaces .item:hover {
    box-shadow: inset 0 -3px;
}

/* -- custom: power menu -- */
.power-menu {
    margin: 0 5px;
}
#power-btn {
    margin: 0 5px;
}

.popup-power-menu #header {
    font-size: 1.4em;
    padding-bottom: 0.4em;
    margin-bottom: 0.6em;
    border-bottom: 1px solid @color_border;
}

.popup-power-menu .power-btn {
    border: 1px solid @color_border;
    padding: 0.6em 1em;
}

.popup-power-menu .power-btn:hover {
    border: 1px solid @color_border_active;
}

.popup-power-menu #buttons > *:nth-child(1) .power-btn {
    margin-right: 1em;
}

#sosep {
    padding: 0;
    margin: 0 0 2px 0;
    color: darkgrey;
}

#focused-window {
/*     border: 1px solid @color_bg_darkborder-radius: 5px;; */
/* border-radius: 5px; */
    padding: 2px 4px;
    font-weight: bold;
}

.upower {
    margin: 0 5px;
}

.popup-upower {
    border-radius: 5px;
}

#sovolume-btn {
    padding: 0;
    margin: 0 5px;
}

.popup-sovolume #header {
    font-size: 1.4em;
    color: @color_text;
    padding-bottom: 0.4em;
    margin-bottom: 0.6em;
    border-bottom: 1px solid @color_border;
}

.popup-sovolume {
    padding: 1em;
}

#sovol-box {
    padding: 0.5em;
/*     border: 1px solid red; */

}

.popup-sovolume .vol-box {
     margin: 0.2em;
/*    border: 1px solid green; */
}

.popup-sovolume .vol-btn {
    font-size: 1.2em;
    font-weight: bold;
    border: 1px solid @color_border;
    padding: 0.5em 2em;
    margin: 0.5em;
    border-radius: 5px;
}

.popup-sovolume .vol-btn:hover, .vol-slider:hover {
    border: 1px solid @color_border_active;
}

.vol-slider {
    border: 1px solid @color_bg;
     padding: 0 2em 1.5em 2em ;
    margin: 0.5em;
    border-radius: 5px;
}

/*.vol-slider:hover {
    border: 1px solid @color_border_active;
}*/

.popup-sovolume .vol-slider slider {
    border-radius: 100%;
    margin-left: 5px;
    margin-right: 5px;
}

.vol-label {
    font-size: 1.2em;
    /*border: 1px solid @color_border;*/
    padding: 0.5em 2em;
    margin: 0.5em;
    border-radius: 5px;
}

#reload-conf {
    font-weight: bold;
    margin: 0 5px;
}

.ws-lbl {
    margin: 0 5px;
    /*border: 1px solid @color_border_active;
    border-radius: 100%;*/
}

Looks like I'll need to get a new stable release out pretty quick. I'm aiming to get a few bugs sorted and a new release as soon as I can.

As for the runtime error, I'm not sure. Are you able to try again on the latest commit, and share the logs again if it still errors please? Recent changes mean the previous stacktrace isn't useful anymore unfortunately.

Hi, Sorry I got your response while on travel, and didn't get to answer right away,

I did as you suggested, building from the git repo.

error: failed to run custom build command for `mlua-sys v0.6.1`

Caused by:
  process didn't exit successfully: `/home/salo/Documents/ironbar/target/release/build/mlua-sys-ddb0f903746a878e/build-script-main` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=build
  cargo:rerun-if-env-changed=LUA_LIB
  cargo:rerun-if-env-changed=LUA_LIB_NAME
  cargo:rerun-if-env-changed=LUA_LINK
  cargo:rerun-if-env-changed=LUAJIT_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=LUAJIT_STATIC
  cargo:rerun-if-env-changed=LUAJIT_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  thread 'main' panicked at /home/salo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mlua-sys-0.6.1/build/find_normal.rs:57:30:
  cannot find LuaJIT using `pkg-config`: `PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" PKG_CONFIG_ALLOW_SYSTEM_LIBS="1" "pkg-config" "--libs" "--cflags" "luajit" "luajit >= 2.0.4" "luajit < 2.2"` did not exit successfully: exit status: 1
  error: could not find system library 'luajit' required by the 'mlua-sys' crate

  --- stderr
  Package luajit was not found in the pkg-config search path.
  Perhaps you should add the directory containing `luajit.pc'
  to the PKG_CONFIG_PATH environment variable
  Package 'luajit' not found
  Package 'luajit' not found
  Package 'luajit' not found

  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

Here is with the command RUST_BACKTRACE=full CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true cargo build --release

error: failed to run custom build command for `mlua-sys v0.6.1`

Caused by:
  process didn't exit successfully: `/home/salo/Documents/ironbar/target/release/build/mlua-sys-d574bb1fb82cf71b/build-script-main` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=build
  cargo:rerun-if-env-changed=LUA_LIB
  cargo:rerun-if-env-changed=LUA_LIB_NAME
  cargo:rerun-if-env-changed=LUA_LINK
  cargo:rerun-if-env-changed=LUAJIT_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=LUAJIT_STATIC
  cargo:rerun-if-env-changed=LUAJIT_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  thread 'main' panicked at /home/salo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mlua-sys-0.6.1/build/find_normal.rs:57:30:
  cannot find LuaJIT using `pkg-config`: `PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" PKG_CONFIG_ALLOW_SYSTEM_LIBS="1" "pkg-config" "--libs" "--cflags" "luajit" "luajit >= 2.0.4" "luajit < 2.2"` did not exit successfully: exit status: 1
  error: could not find system library 'luajit' required by the 'mlua-sys' crate

  --- stderr
  Package luajit was not found in the pkg-config search path.
  Perhaps you should add the directory containing `luajit.pc'
  to the PKG_CONFIG_PATH environment variable
  Package 'luajit' not found
  Package 'luajit' not found
  Package 'luajit' not found

  stack backtrace:
     0:     0x55b9cff98020 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h708de712029cb15f
     1:     0x55b9cffca26b - core::fmt::write::h1c4353b51cccb3ea
     2:     0x55b9cffb45f9 - std::io::Write::write_fmt::hcc8780934fe9031f
     3:     0x55b9cff97dde - std::sys_common::backtrace::print::hc2ff0f9eb8716380
     4:     0x55b9cffa5bfa - std::panicking::default_hook::{{closure}}::h2608c1692f29128d
     5:     0x55b9cffa58e9 - std::panicking::default_hook::hb19e8d974208f968
     6:     0x55b9cffa6089 - std::panicking::rust_panic_with_hook::hed421d2c4566430f
     7:     0x55b9cff983f4 - std::panicking::begin_panic_handler::{{closure}}::h02e89190bc8024e5
     8:     0x55b9cff98239 - std::sys_common::backtrace::__rust_end_short_backtrace::h2501369998c7775f
     9:     0x55b9cffa5d87 - rust_begin_unwind
    10:     0x55b9cff58eb3 - core::panicking::panic_fmt::h02e8faf7efcfa656
    11:     0x55b9cff5b930 - build_script_main::find::probe_lua::{{closure}}::h2ec03b2d777a7588
                                 at /home/salo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mlua-sys-0.6.1/build/find_normal.rs:57:30
    12:     0x55b9cff5a495 - core::result::Result<T,E>::unwrap_or_else::h108e3d110a2861e6
                                 at /home/abuild/rpmbuild/BUILD/rustc-1.79.0-src/library/core/src/result.rs:1431:23
    13:     0x55b9cff5b5d1 - build_script_main::find::probe_lua::hd774de5b481b391d
                                 at /home/salo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mlua-sys-0.6.1/build/find_normal.rs:57:5
    14:     0x55b9cff5aca6 - build_script_main::main::h4a23d1fa5c39a596
                                 at /home/salo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mlua-sys-0.6.1/build/main_inner.rs:34:5
    15:     0x55b9cff59ebb - core::ops::function::FnOnce::call_once::hd75528d4e3e4a118
                                 at /home/abuild/rpmbuild/BUILD/rustc-1.79.0-src/library/core/src/ops/function.rs:250:5
    16:     0x55b9cff59a2e - std::sys_common::backtrace::__rust_begin_short_backtrace::hc515847e3c0e5139
                                 at /home/abuild/rpmbuild/BUILD/rustc-1.79.0-src/library/std/src/sys_common/backtrace.rs:155:18
    17:     0x55b9cff59aa1 - std::rt::lang_start::{{closure}}::h35b84eafbbb6a72e
                                 at /home/abuild/rpmbuild/BUILD/rustc-1.79.0-src/library/std/src/rt.rs:159:18
    18:     0x55b9cffa5c77 - std::panicking::try::hdf7b79b717201327
    19:     0x55b9cff8649e - std::rt::lang_start_internal::h889e7109c16da08a
    20:     0x55b9cff59a7a - std::rt::lang_start::hf01fe6ad73a33df3
                                 at /home/abuild/rpmbuild/BUILD/rustc-1.79.0-src/library/std/src/rt.rs:158:17
    21:     0x55b9cff5b96e - main
    22:     0x7fc2c382a1f0 - __libc_start_call_main
    23:     0x7fc2c382a2b9 - __libc_start_main@GLIBC_2.2.5
    24:     0x55b9cff59455 - _start
                                 at /home/abuild/rpmbuild/BUILD/glibc-2.39/csu/../sysdeps/x86_64/start.S:115
    25:                0x0 - <unknown>
warning: build failed, waiting for other jobs to finish...

If you're compiling with the Cairo module enabled, this requires LuaJIT is installed. You'll need to either disable the module, or install the dev package.

https://github.com/JakeStanger/ironbar/wiki/compiling#build-requirements

Here is the output, of running it on terminal,

2024-08-06T09:05:12.192993Z  INFO ironbar: 132: Ironbar version 0.16.0-pre
2024-08-06T09:05:12.193022Z  INFO ironbar: 133: Starting application
2024-08-06T09:05:12.289753Z  INFO ironbar::ipc::server: 39: Starting IPC on /run/user/1000/ironbar-ipc.sock
2024-08-06T09:05:12.293118Z  INFO ironbar::bar: 114: Initializing bar 'soironbatop' on 'eDP-1'
2024-08-06T09:05:12.335651Z ERROR ironbar: 220: 
   0: zbus error
   1: name already taken on the bus

Location:
   src/clients/mod.rs:156

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
2024-08-06T09:05:12.405823Z  WARN ironbar::image::provider: 131: Failed to find image: com.sayonara-player.Sayonara

Okay, it looks like that's coming from the tray client code. Are you running a tray elsewhere (via Waybar, AGS, QuickShell, another Ironbar instance, etc...)?

Yes, I was running sfwbar, I thought it may have somthing to do with it so I pkilled it then tried again without success.

But, with your comment I disabled sfwbar from autostart, logged out then logged in, and it WORKED ! :)
Thanks

I tried to install ironbar again using cargo, but it doesn't compile, same as before, guess it's still on 0.15.1

error[E0432]: unresolved import `nix::fcntl::OFlag`
 --> /home/salo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ironbar-0.15.1/src/clients/wayland/wlr_data_control/offer.rs:3:5
  |
3 | use nix::fcntl::OFlag;
  |     ^^^^^^^^^^^^^^^^^ no `OFlag` in `fcntl`

error[E0432]: unresolved import `nix::unistd::pipe2`
    --> /home/salo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ironbar-0.15.1/src/clients/wayland/wlr_data_control/offer.rs:4:26
     |
4    | use nix::unistd::{close, pipe2};
     |                          ^^^^^
     |                          |
     |                          no `pipe2` in `unistd`
     |                          help: a similar name exists in the module: `pipe`
     |
note: found an item that was configured out
    --> /home/salo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nix-0.27.1/src/unistd.rs:1233:8
     |
1233 | pub fn pipe2(flags: OFlag) -> Result<(RawFd, RawFd)> {
     |        ^^^^^
     = note: the item is gated behind the `fs` feature

error[E0432]: unresolved imports `nix::fcntl::fcntl`, `nix::fcntl::F_GETPIPE_SZ`, `nix::fcntl::F_SETPIPE_SZ`
   --> /home/salo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ironbar-0.15.1/src/clients/wayland/wlr_data_control/mod.rs:13:18
    |
13  | use nix::fcntl::{fcntl, F_GETPIPE_SZ, F_SETPIPE_SZ};
    |                  ^^^^^  ^^^^^^^^^^^^  ^^^^^^^^^^^^ no `F_SETPIPE_SZ` in `fcntl`
    |                  |      |
    |                  |      no `F_GETPIPE_SZ` in `fcntl`
    |                  no `fcntl` in `fcntl`
    |
    = help: consider importing this module instead:
            nix::fcntl
note: found an item that was configured out
   --> /home/salo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nix-0.27.1/src/fcntl.rs:509:8
    |
509 | pub fn fcntl(fd: RawFd, arg: FcntlArg) -> Result<c_int> {
    |        ^^^^^
    = note: the item is gated behind the `fs` feature

error[E0308]: mismatched types
   --> /home/salo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ironbar-0.15.1/src/clients/compositor/hyprland.rs:156:51
    |
156 |                     let name = get_workspace_name(workspace_type);
    |                                ------------------ ^^^^^^^^^^^^^^ expected `WorkspaceType`, found `WorkspaceDestroyedEventData`
    |                                |
    |                                arguments to this function are incorrect
    |
note: function defined here
   --> /home/salo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ironbar-0.15.1/src/clients/compositor/hyprland.rs:247:4
    |
247 | fn get_workspace_name(name: WorkspaceType) -> String {
    |    ^^^^^^^^^^^^^^^^^^ -------------------

Some errors have detailed explanations: E0308, E0432.
For more information about an error, try `rustc --explain E0308`.
error: could not compile `ironbar` (bin "ironbar") due to 4 previous errors
error: failed to compile `ironbar v0.15.1`, intermediate artifacts can be found at `/tmp/cargo-installd9FUG2`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Yes, I was running sfwbar, I thought it may have somthing to do with it so I pkilled it then tried again without success.

But, with your comment I disabled sfwbar from autostart, logged out then logged in, and it WORKED ! :) Thanks

No problem, this is a known issue at the moment with the tray implementation.