mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 10:15:20 +01:00
[GH-ISSUE #634] XDG related (?) issues on NixOS #5835
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#5835
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @madfanat on GitHub (Jun 5, 2024).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/634
Description
I've added several applications to the launcher favorites list. Some of them have desktop files (fish, helix) and some for some reason don't (alacritty, chromium). The launcher is empty when no applications are open. I thought the problem might be related to
gtk-launch(which I couldn't access directly from shell) and tried installing the gtk3 package, but that didn't help.Also upower doesn't show the battery icon. I guess it can be related to xdg-icons or something like this too. If have any ideas how to fix this, please tell me.
Also, the battery icon provided by upower is not showing. I think it might be related to xdg-icons or something like this too. If you have any ideas on how to fix this, please tell me.
Reproducing:
System information:
Configuration
Config
Styles
Screenshots

@JakeStanger commented on GitHub (Jun 5, 2024):
How did you install Ironbar?
@madfanat commented on GitHub (Jun 5, 2024):
By adding
ironbar.url = "github:JakeStanger/ironbar";to my flakes configuration and setting this in my home-manager configuration:@madfanat commented on GitHub (Jun 6, 2024):
Well, I even configured
xdg,xdg-userdirsandxdg-mimeapps, but the problem is still here.@humaidq-tii commented on GitHub (Jun 7, 2024):
Is
gtk.iconCache.enableset? It defaults to value ofservices.xserver.enable.@madfanat commented on GitHub (Jun 7, 2024):
@humaidtii, I'm kinda new to NixOS and don't really understand if
xserverneeds to be enabled. It seems likexwaylandis completely working without it. So is it necessary when using Wayland?@humaidq-tii commented on GitHub (Jun 7, 2024):
You probably don't need to enable xserver, does setting
gtk.iconCache.enable = true;fix your issue?@madfanat commented on GitHub (Jun 7, 2024):
@humaidtii, I enabled the setting, but that didn't help. It seems like the problem is not only in icons, but also in logic: favourite applications are not there at all, not only their icons.
@madfanat commented on GitHub (Jun 7, 2024):
I even enabled
services.xserver, but that didn't fix the problem too.@JakeStanger commented on GitHub (Jun 7, 2024):
I bet they are, they're just zero width due to the missing icon. Try enabling
show_nameson the launcher.I'm afraid I don't know much about nix other than "this should work". A good amount of work went into derivation to make sure icons work correctly on Nix.
@yavko @donovanglover as the nix maintainers, any ideas?
@madfanat commented on GitHub (Jun 7, 2024):
That's pretty funny, but even if I enable this option, both icons and names of favourite applications still don't show up.
@madfanat commented on GitHub (Jun 7, 2024):
Is it possible that launcher uses some sort of protocol that is not added as a dependency in ironbar flake?
Even if so, the problem with upower-provided icons is a mystery.
@JakeStanger commented on GitHub (Jun 7, 2024):
Ironbar relies on the
wlr_foreign_toplevel_managementprotocol for the launcher/focused modules. Nothing needs to be added as a dependency or launched or anything, as it's a protocol so it needs needs to be implemented on each side. If that wasn't present, you'd hard crash.The fact names aren't showing up is very weird though. Could you share debug logs using a minimal repro config please?
@madfanat commented on GitHub (Jun 7, 2024):
Do you mean the default configuration or the example configuration from the manual?
@JakeStanger commented on GitHub (Jun 8, 2024):
I mean a configuration that contains as little as possible required to replicate the bug, ie just a launcher widget and any related bar/top level settings.
@madfanat commented on GitHub (Jun 8, 2024):
The style css is empty.
This is the config
These are the logs
Yep, the issue is still here.
@madfanat commented on GitHub (Jun 8, 2024):
Then I thought I'd attach the logs from my main configuration just in case (also because the upower issue is still there too).
This is the config
This is the style css
These are the logs
@yavko commented on GitHub (Jun 8, 2024):
in ur logs it seems to have found at least one icon
@yavko commented on GitHub (Jun 8, 2024):
also the upower icon should be displaying, in the logs it was found
@yavko commented on GitHub (Jun 8, 2024):
Doesn't seem to be a nix issue, but I could also be mistaken about what the issue is.
@madfanat commented on GitHub (Jun 8, 2024):
Yep, as I said, only favourite applications are not displayed, and currently open ones are. That's why I thought it might be related to xdg stuff.
Well, it's not. And seems like the problem isn't related to fonts or something. At least the names of the favourites don't show up either.
@madfanat commented on GitHub (Jun 9, 2024):
@JakeStanger, @yavko I even tried applying this config on my Artix Linux setup and... it doesn't work the same as it does on NixOS. This is really, really weird. In fact, almost the same config, but written in corn, ran successfully on this distro. Maybe there is a bug in my config and style files? Could you please check this?
UPD: OMG, this is so, so stupid. The only reason for this issue is spelling: “favourites” instead of “favorites”.
@madfanat commented on GitHub (Jun 9, 2024):
But still don't close the issue, because the upower icon problem is still here for some reason. And please check the config, maybe there is a mistake there too :)
@madfanat commented on GitHub (Jun 9, 2024):
After forcing the icon theme, the upower issue is also sorted.
@JakeStanger commented on GitHub (Jun 9, 2024):
I can probably add an alias for UK spelling. I just gave in and used the US one for consistency lol
Glad it's sorted