diff options
Diffstat (limited to 'meson/postinstall.py')
-rwxr-xr-x | meson/postinstall.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meson/postinstall.py b/meson/postinstall.py index 528739149..81afb18b7 100755 --- a/meson/postinstall.py +++ b/meson/postinstall.py @@ -8,6 +8,12 @@ datadir = os.path.join(prefix, 'share') # Packaging tools define DESTDIR and this isn't needed for them if 'DESTDIR' not in os.environ: + print('Updating icon cache...') + icon_cache_dir = os.path.join(datadir, 'icons', 'hicolor') + if not os.path.exists(icon_cache_dir): + os.makedirs(icon_cache_dir) + subprocess.call(['gtk-update-icon-cache', '-qtf', icon_cache_dir]) + print('Updating desktop database...') desktop_database_dir = os.path.join(datadir, 'applications') if not os.path.exists(desktop_database_dir): |