about summary refs log tree commit diff
path: root/nixpkgs/pkgs/data/icons/hicolor-icon-theme/setup-hook.sh
blob: f07bab4b269ff3911488f9af2cdd8b082ccb3a67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# shellcheck shell=bash

# Populate XDG_ICON_DIRS
hicolorIconThemeHook() {

    # where to find icon themes
    if [ -d "$1/share/icons" ]; then
      addToSearchPath XDG_ICON_DIRS "$1/share"
    fi
}

# I think this is meant to be a runtime dep
addEnvHooks "${hostOffset:?}" hicolorIconThemeHook