Currently path to the power icons is hardcoded to /usr/share/.... However, XDG_DATA_DIRS doesn't always include this directory on read-only OSs, like NixOS. There this data is stored inside $HOME/.nix-profile/share/
$XDG_DATA_DIRS should be respected, when we search for the power icons. The same thing applies to the desktop-entries.
The possible solution would be to add $HOME/.nix-profile/share to the xdgDataDirs. Or we can get env variable XDG_DATA_DIRS directly, without hardcoding it (it seems better).
Currently path to the power icons is hardcoded to
/usr/share/...
. However, XDG_DATA_DIRS doesn't always include this directory on read-only OSs, like NixOS. There this data is stored inside$HOME/.nix-profile/share/
https://github.com/nwg-piotr/nwg-drawer/blob/71ce3b5d759a4d00e835525f4716317a1bccdfad/main.go#L589
$XDG_DATA_DIRS should be respected, when we search for the power icons. The same thing applies to the desktop-entries.
The possible solution would be to add
$HOME/.nix-profile/share
to thexdgDataDirs
. Or we can getenv
variableXDG_DATA_DIRS
directly, without hardcoding it (it seems better).https://github.com/nwg-piotr/nwg-drawer/blob/71ce3b5d759a4d00e835525f4716317a1bccdfad/tools.go#L243