File: meson_update_icon_cache.py

package info (click to toggle)
atril 1.28.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,852 kB
  • sloc: ansic: 67,359; cpp: 2,719; makefile: 1,589; xml: 745; python: 333; sh: 111; perl: 54
file content (10 lines) | stat: -rw-r--r-- 296 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/python3

import os
import subprocess

themedir = os.path.join(os.environ['MESON_INSTALL_PREFIX'], 'share', 'icons', 'hicolor')

if not os.environ.get('DESTDIR'):
    print('Updating gtk icon cache... %s' % themedir)
    subprocess.call(['gtk-update-icon-cache', '-f', '-t', themedir])