atril-jp/install-scripts/meson_update_icon_cache.py
Oz Tiram b1f21edcec Initial support for meson
Mostly copy and paste from linuxmint/xreader

Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
2025-04-04 22:19:13 +00:00

10 lines
296 B
Python

#!/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])