[GH-ISSUE #532] Launcher not starting applications in git version #2982

Closed
opened 2026-05-22 23:53:03 +01:00 by JakeStanger · 14 comments
Owner

Originally created by @Ithvr on GitHub (Apr 5, 2024).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/532

Describe the bug
When running the git version of Ironbar the icons in do not start an applications. The icon works (stuff like grouping of window) as normal once I have started the application.

To Reproduce
Steps to reproduce the behavior:

  1. Use got version of Ironbar
  2. Have launcher added in config
  3. Try to use the application icon to start an application
  4. No action happens

Expected behavior
For the relevant application to start when clicked on

System information:

  • Distro: NixOS Unstable + Flake
  • Compositor: LabWC
  • Ironbar version: ironbar-0.15.0-pre+date=2024-04-05_4a3bca1

Configuration

Config ...

{
"anchor_to_edges": true,
"icon_theme": "Tela-circle",
"position": "bottom",

"start": [
  {
    "type": "launcher",
    "favorites": [
      "firefox",
      "thunar",
      "code-url-handler",
      "Alacritty",
      "WebCord",
      "Element"
    ],
    "show_icons": true,
    "show_names": false
  }
],
"end": [
  {
    "type": "tray",
    "direction": "left_to_right"
  },
  {
    "type": "custom",
    "bar": [
      {
        "label": "",
        "name": "power-btn",
        "on_click": "popup:toggle",
        "type": "button"
      }
    ],
    "class": "power-menu",
    "popup": [
      {
        "orientation": "vertical",
        "type": "box",
        "widgets": [
          {
            "label": "Power Menu",
            "name": "header",
            "type": "label"
          },
          {
            "type": "box",
            "widgets": [
              {
                "class": "power-btn",
                "label": "<span font-size='40pt'></span>",
                "on_click": "!shutdown now",
                "type": "button"
              },
              {
                "class": "power-btn",
                "label": "<span font-size='40pt'></span>",
                "on_click": "!reboot",
                "type": "button"
              }
            ]
          }
        ]
      }
    ]
  },
  {
    "type": "volume",
    "format": "{icon}",
    "max_volume": 100,
    "icons": {
      "volume_high": "󰕾",
      "volume_medium": "󰖀",
      "volume_low": "󰕿",
      "muted": "󰝟"
    }
  },
  {
    "type": "upower",
    "format": "{percentage}%"
  },
  {
    "type": "clock"
  }
]

}

...

Styles

@define-color color_bg #24273a;
@define-color color_bg_dark #1c1c1c;
@define-color color_border #1e2030;
@define-color color_border_active #b7bdf8;
@define-color color_text #cad3f5;
@define-color color_urgent #eed49f;

/* -- base styles -- */

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

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

button, label {
    color: @color_text;
}

button:hover {
    background-color: @color_bg_dark;
}

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

#bar {
    border-top: 1px solid @color_border;
}

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


/* -- clipboard -- */

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

.popup-clipboard .item {
    padding-bottom: 0.3em;
    border-bottom: 1px solid @color_border;
}


/* -- clock -- */

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

.popup-clock .calendar-clock {
    color: @color_text;
    font-size: 2.5em;
    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-right: 4px;
}

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

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

.launcher .focused {
    border-bottom: 1px solid @color_border_active;
}

.launcher .urgent {
    border-bottom-color: @color_urgeAlacritty's configuration file uses the TOML format. The format's specification can be found at https://toml.io/en/v1.0.0.nt;
}

.popup-launcher {
    padding: 0;
}

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


/* -- music -- */

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

.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 .volume .slider slider {
    border-radius: 100%;
}

.popup-music .volume .icon {
    margin-left: 4px;
}

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

/* -- script -- */

.script {
    padding-left: 10px;
}


/* -- sys_info -- */

.sysinfo {
    margin-left: 10px;
}

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


/* -- tray -- */

.tray {
    margin-left: 10px;
}


/* -- 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 -- */

.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 #buttons > *:nth-child(1) .power-btn {
    margin-right: 1em;
}

Originally created by @Ithvr on GitHub (Apr 5, 2024). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/532 **Describe the bug** When running the git version of Ironbar the icons in do not start an applications. The icon works (stuff like grouping of window) as normal once I have started the application. **To Reproduce** Steps to reproduce the behavior: 1. Use got version of Ironbar 2. Have launcher added in config 3. Try to use the application icon to start an application 4. No action happens **Expected behavior** For the relevant application to start when clicked on **System information:** - Distro: NixOS Unstable + Flake - Compositor: LabWC - Ironbar version: ironbar-0.15.0-pre+date=2024-04-05_4a3bca1 **Configuration** <details><summary>Config</summary> ... { "anchor_to_edges": true, "icon_theme": "Tela-circle", "position": "bottom", "start": [ { "type": "launcher", "favorites": [ "firefox", "thunar", "code-url-handler", "Alacritty", "WebCord", "Element" ], "show_icons": true, "show_names": false } ], "end": [ { "type": "tray", "direction": "left_to_right" }, { "type": "custom", "bar": [ { "label": "", "name": "power-btn", "on_click": "popup:toggle", "type": "button" } ], "class": "power-menu", "popup": [ { "orientation": "vertical", "type": "box", "widgets": [ { "label": "Power Menu", "name": "header", "type": "label" }, { "type": "box", "widgets": [ { "class": "power-btn", "label": "<span font-size='40pt'></span>", "on_click": "!shutdown now", "type": "button" }, { "class": "power-btn", "label": "<span font-size='40pt'></span>", "on_click": "!reboot", "type": "button" } ] } ] } ] }, { "type": "volume", "format": "{icon}", "max_volume": 100, "icons": { "volume_high": "󰕾", "volume_medium": "󰖀", "volume_low": "󰕿", "muted": "󰝟" } }, { "type": "upower", "format": "{percentage}%" }, { "type": "clock" } ] } ... </details> <details><summary>Styles</summary> ```css @define-color color_bg #24273a; @define-color color_bg_dark #1c1c1c; @define-color color_border #1e2030; @define-color color_border_active #b7bdf8; @define-color color_text #cad3f5; @define-color color_urgent #eed49f; /* -- base styles -- */ * { font-family: Noto Sans Nerd Font, sans-serif; font-size: 18px; border: none; border-radius: 0; } box, menubar, button { background-color: @color_bg; background-image: none; box-shadow: none; } button, label { color: @color_text; } button:hover { background-color: @color_bg_dark; } scale trough { min-width: 1px; min-height: 2px; } #bar { border-top: 1px solid @color_border; } .popup { border: 1px solid @color_border; padding: 1em; } /* -- clipboard -- */ .clipboard { margin-left: 5px; font-size: 1.1em; } .popup-clipboard .item { padding-bottom: 0.3em; border-bottom: 1px solid @color_border; } /* -- clock -- */ .clock { font-weight: bold; margin-left: 5px; } .popup-clock .calendar-clock { color: @color_text; font-size: 2.5em; 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-right: 4px; } .launcher .ifix examtem:not(.focused):hover { background-color: @color_bg_dark; } .launcher .open { border-bottom: 1px solid @color_text; } .launcher .focused { border-bottom: 1px solid @color_border_active; } .launcher .urgent { border-bottom-color: @color_urgeAlacritty's configuration file uses the TOML format. The format's specification can be found at https://toml.io/en/v1.0.0.nt; } .popup-launcher { padding: 0; } .popup-launcher .popup-item:not(:first-child) { border-top: 1px solid @color_border; } /* -- music -- */ .music:hover * { background-color: @color_bg_dark; } .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 .volume .slider slider { border-radius: 100%; } .popup-music .volume .icon { margin-left: 4px; } .popup-music .progress .slider slider { border-radius: 100%; } /* -- script -- */ .script { padding-left: 10px; } /* -- sys_info -- */ .sysinfo { margin-left: 10px; } .sysinfo .item { margin-left: 5px; } /* -- tray -- */ .tray { margin-left: 10px; } /* -- 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 -- */ .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 #buttons > *:nth-child(1) .power-btn { margin-right: 1em; } ``` </details>
JakeStanger 2026-05-22 23:53:03 +01:00
  • closed this issue
  • added the
    T:Bug
    label
Author
Owner

@JakeStanger commented on GitHub (Apr 5, 2024):

I'm running the latest git version here and it still works fine for me. Is this with any particular application, or with all of the ones in your favourites?

Could you also provide logs please, running with IRONBAR_LOG=debug (or IRONBAR_FILE_LOG=debug)?

<!-- gh-comment-id:2040694494 --> @JakeStanger commented on GitHub (Apr 5, 2024): I'm running the latest git version here and it still works fine for me. Is this with any particular application, or with all of the ones in your favourites? Could you also provide logs please, running with `IRONBAR_LOG=debug` (or `IRONBAR_FILE_LOG=debug`)?
Author
Owner

@Ithvr commented on GitHub (Apr 5, 2024):

This happens to all application added to favorites. I hope the log will help.
ironbar.2024-04-05.log

<!-- gh-comment-id:2040797704 --> @Ithvr commented on GitHub (Apr 5, 2024): This happens to all application added to favorites. I hope the log will help. [ironbar.2024-04-05.log](https://github.com/JakeStanger/ironbar/files/14891693/ironbar.2024-04-05.log)
Author
Owner

@JakeStanger commented on GitHub (Apr 6, 2024):

Well the problem is obvious at least:

 591   │ 2024-04-05T23:56:18.978857Z ERROR ironbar::modules::launcher: 
 592   │    0: Failed to run gtk-launch command.
 593   │    1: No such file or directory (os error 2)

The gtk-launch command is provided by GTK 3, I guess that's not passed through at runtime on Nix.

Paging @yavko and @donovanglover as the Nix maintainers - are either of you able to take a stab at this please?

<!-- gh-comment-id:2041126007 --> @JakeStanger commented on GitHub (Apr 6, 2024): Well the problem is obvious at least: ``` 591 │ 2024-04-05T23:56:18.978857Z ERROR ironbar::modules::launcher: 592 │ 0: Failed to run gtk-launch command. 593 │ 1: No such file or directory (os error 2) ``` The `gtk-launch` command is provided by GTK 3, I guess that's not passed through at runtime on Nix. Paging @yavko and @donovanglover as the Nix maintainers - are either of you able to take a stab at this please?
Author
Owner

@yavko commented on GitHub (Apr 6, 2024):

Well the problem is obvious at least:

 591   │ 2024-04-05T23:56:18.978857Z ERROR ironbar::modules::launcher: 
 592   │    0: Failed to run gtk-launch command.
 593   │    1: No such file or directory (os error 2)

The gtk-launch command is provided by GTK 3, I guess that's not passed through at runtime on Nix.

Paging @yavko and @donovanglover as the Nix maintainers - are either of you able to take a stab at this please?

It should be, with the gtk wrapper, I think? Let me double-check.

<!-- gh-comment-id:2041150377 --> @yavko commented on GitHub (Apr 6, 2024): > Well the problem is obvious at least: > > ``` > 591 │ 2024-04-05T23:56:18.978857Z ERROR ironbar::modules::launcher: > 592 │ 0: Failed to run gtk-launch command. > 593 │ 1: No such file or directory (os error 2) > ``` > > The `gtk-launch` command is provided by GTK 3, I guess that's not passed through at runtime on Nix. > > Paging @yavko and @donovanglover as the Nix maintainers - are either of you able to take a stab at this please? It should be, with the gtk wrapper, I think? Let me double-check.
Author
Owner

@Ithvr commented on GitHub (Apr 6, 2024):

Just to make sure I am using the flake hosted in this GitHub repo.
I was using the normal package in the NixOS unstable repo where it worked well.

<!-- gh-comment-id:2041157413 --> @Ithvr commented on GitHub (Apr 6, 2024): Just to make sure I am using the flake hosted in this GitHub repo. I _was_ using the normal package in the NixOS unstable repo where it worked well.
Author
Owner

@yavko commented on GitHub (Apr 6, 2024):

found the culprit, the nixpkgs package has an extra thing in the wrapper however the flake package doesn't, probably cuz I'm stupid and should try packages in a sandbox w/o my system packages
image

<!-- gh-comment-id:2041161732 --> @yavko commented on GitHub (Apr 6, 2024): found the culprit, the nixpkgs package has an extra thing in the wrapper however the flake package doesn't, probably cuz I'm stupid and should try packages in a sandbox w/o my system packages ![image](https://github.com/JakeStanger/ironbar/assets/15178513/5050f548-c389-49b5-9670-a3dda5d9c0d2)
Author
Owner

@JakeStanger commented on GitHub (Apr 6, 2024):

Aha, I'll fix that now. Cheers for looking.

<!-- gh-comment-id:2041162271 --> @JakeStanger commented on GitHub (Apr 6, 2024): Aha, I'll fix that now. Cheers for looking.
Author
Owner

@JakeStanger commented on GitHub (Apr 6, 2024):

I don't easily have a sandbox to test with myself yet. @Ithvr 693f407 should resolve it - could you test and confirm please?

<!-- gh-comment-id:2041162631 --> @JakeStanger commented on GitHub (Apr 6, 2024): I don't easily have a sandbox to test with myself yet. @Ithvr [693f407](https://github.com/JakeStanger/ironbar/commit/693f4074aee4bc83bfe49f877ef7f65e12c05beb) should resolve it - could you test and confirm please?
Author
Owner

@yavko commented on GitHub (Apr 6, 2024):

Aha, I'll fix that now. Cheers for looking.

i was about to pr, ur fast wow

<!-- gh-comment-id:2041162889 --> @yavko commented on GitHub (Apr 6, 2024): > Aha, I'll fix that now. Cheers for looking. i was about to pr, ur fast wow
Author
Owner

@yavko commented on GitHub (Apr 6, 2024):

I don't easily have a sandbox to test with myself yet. @Ithvr 693f407 should resolve it - could you test and confirm please?

Apparently there is a --pure for this in nix-shell, but idk if there is a flake equiv

<!-- gh-comment-id:2041163685 --> @yavko commented on GitHub (Apr 6, 2024): > I don't easily have a sandbox to test with myself yet. @Ithvr [693f407](https://github.com/JakeStanger/ironbar/commit/693f4074aee4bc83bfe49f877ef7f65e12c05beb) should resolve it - could you test and confirm please? Apparently there is a `--pure` for this in nix-shell, but idk if there is a flake equiv
Author
Owner

@yavko commented on GitHub (Apr 6, 2024):

i bet you could nuke your path in the current shell, and then call nix develop with the absolute path to do a sandbox

<!-- gh-comment-id:2041164185 --> @yavko commented on GitHub (Apr 6, 2024): i bet you could nuke your path in the current shell, and then call `nix develop` with the absolute path to do a sandbox
Author
Owner

@Ithvr commented on GitHub (Apr 6, 2024):

Well I just finished compiling ironbar with 693f407 and it seems to work now.

<!-- gh-comment-id:2041164369 --> @Ithvr commented on GitHub (Apr 6, 2024): Well I just finished compiling ironbar with [693f407](https://github.com/JakeStanger/ironbar/commit/693f4074aee4bc83bfe49f877ef7f65e12c05beb) and it seems to work now.
Author
Owner

@JakeStanger commented on GitHub (Apr 6, 2024):

Cheers for confirming so quickly

<!-- gh-comment-id:2041168712 --> @JakeStanger commented on GitHub (Apr 6, 2024): Cheers for confirming so quickly
Author
Owner

@Ithvr commented on GitHub (Apr 6, 2024):

No problem. I'm impressed how quick at all whent.

<!-- gh-comment-id:2041200672 --> @Ithvr commented on GitHub (Apr 6, 2024): No problem. I'm impressed how quick at all whent.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#2982
No description provided.