File: postinst

package info (click to toggle)
papirus-icon-theme 20230104-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 278,472 kB
  • sloc: sh: 124; makefile: 71
file content (22 lines) | stat: -rw-r--r-- 416 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
set -e

write_cache()
{
if [ -x "$(command -v gtk-update-icon-cache)" ]; then
  for i in ePapirus ePapirus-Dark Papirus Papirus-Dark Papirus-Light; do
    if ! gtk-update-icon-cache --force --quiet "/usr/share/icons/${i}"; then
      echo "WARNING: icon cache generation failed: /usr/share/icons/${i}"
    fi
  done
fi
}

if [ "$1" = "triggered" ]; then
  write_cache
  exit 0
fi

write_cache

#DEBHELPER#