Skip to content

[Bug] Icon Theme on NixOS can't be found #33

Description

@quantumfate

The following common locations for icon themes don't exist on a standard NixOS installation.

➜  ~ hyprlauncher 
[hw] err: err: 111
Creating an Aquamarine backend!
[HT] TRACE: CSystemIconFactory: skipping file /usr/share/icons/default/index.theme (no access)
[HT] TRACE: CSystemIconFactory: skipping file /usr/local/share/icons/default/index.theme (no access)
[HT] TRACE: CSystemIconFactory: skipping file /home/quantum/.icons/default/index.theme (no access)
[HT] TRACE: CSystemIconFactory: skipping dir /usr/share/icons/ (no access)
[HT] TRACE: CSystemIconFactory: skipping dir /usr/local/share/icons/ (no access)
[HT] TRACE: CSystemIconFactory: skipping theme dir /home/quantum/.icons/hicolor (no index.theme)

In a Home-Manager setup, installed such as home.packages = with pkgs; [...], the icons are located in /etc/profiles/per-user/<user>/share/icons and if installed through environment.systemPackages = with pkgs; [...]; it will be located in /run/current-system/sw/share/icons/.

Output of $XDG_DATA_DIRS:

/nix/store/p4i3qsi3vhljaypk4ms1vpckkwc707mm-desktops/share:/home/quantum/.nix-profile/share:/nix/profile/share:/home/quantum/.local/state/nix/profile/share:/etc/profiles/per-user/quantum/share:/nix/var/nix/profiles/default/share:/run/current-system/sw/share

And this folder does have the icons too, that I want to use.

➜ ~ ls /etc/profiles/per-user/quantum/share/icons
catppuccin-mocha-mauve-cursors hicolor icons Papirus Papirus-Dark Papirus-Light transmission.svg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions