diff --git a/meson.build b/meson.build index 94d786a..dd0a543 100644 --- a/meson.build +++ b/meson.build @@ -104,9 +104,12 @@ i18n.merge_file( install_dir: get_option('sysconfdir') / 'xdg' / 'autostart', ) -# Update icon cache manually (desktop-neutral) -meson.add_install_script('gtk4-update-icon-cache', '-q', '-t', '-f', - get_option('datadir') / 'icons' / 'hicolor') +# Update icon cache manually (desktop-neutral) - optional, ignore failures +gtk_update_icon_cache = find_program('gtk4-update-icon-cache', required: false) +if gtk_update_icon_cache.found() + meson.add_install_script('sh', '-c', + 'gtk4-update-icon-cache -q -t -f "$MESON_INSTALL_DESTDIR_PREFIX/' + get_option('datadir') / 'icons' / 'hicolor' + '" || echo "Icon cache update skipped"') +endif summary += {'Install dir': python.find_installation('python3').get_install_dir()}