Closed benjamb closed 3 months ago
Thank you for your contribution! I marked this issue as stale due to inactivity. Please be considerate of people watching this issue and receiving notifications before commenting 'I have this issue too'. We welcome additional information that will help resolve this issue. Please read the relevant sections below before commenting.
* If this is resolved, please consider closing it so that the maintainers know not to focus on this. * If this might still be an issue, but you are not interested in promoting its resolution, please consider closing it while encouraging others to take over and reopen an issue if they care enough. * If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.
* If you are also experiencing this issue, please add details of your situation to help with the debugging process. * If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.
Don't be afraid to manually close an issue, even if it holds valuable information. Closed issues stay in the system for people to search, read, cross-reference, or even reopen – nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort.
The b2f56952074cb46e93902ecaabfb04dd93733434 commit does add ["${pkgs.networkmanagerapplet}/share"]
to XDG_DATA_DIRS
. I'm not certain why this wasn't working for me previously, but if I drop the workaround icons are now loaded properly.
I'll close this since this appears to be fixed.
Are you following the right branch?
Is there an existing issue for this?
Issue description
With waybar configured and enabled with the
tray
module, and the network-manager-applet service enabled withxsession.preferStatusNotifierItems
set totrue
, waybar cannot find the appropriate icons.It's possible this applies to other applications, though I don't see this with
blueman
orudiskie
, but this is perhaps since I have them installed viahome.packages
.A snippet from
waybar -l trace
:A workaround for this is to set
xdg.systemDirs.data = ["${pkgs.networkmanagerapplet}/share"]
, but this feels like something I shouldn't have to configure myself, but I'm not sure of what the best solution would be.Some rough ideas from a relative newbie:
xdg.systemDirs
withinnetwork-manager-applet.nix
.waybar.nix
that checks whether network-manager-applet/nm-applet (or other such SNI packages) are enabled and creates a wrapper with XDG_DATA_DIRS set including the paths to these apps.waybar.nix
that accepts a list of packages and creates a similar wrapper mentioned above with XDG_DATA_DIRS set to include those packages listed.Maintainer CC
@cvoges12 @rycee @berbiche
System information