File: meson_update_icon_cache.py

package info (click to toggle)
cinnamon 6.4.13-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 13,304 kB
  • sloc: javascript: 54,298; ansic: 51,499; python: 21,971; xml: 2,803; sh: 96; makefile: 27; perl: 13
file content (10 lines) | stat: -rw-r--r-- 296 bytes parent folder | download | duplicates (12)
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])