From 176bbca82134d5f2296f83111097739a558607a2 Mon Sep 17 00:00:00 2001 From: Mads Kiilerich Date: Sat, 30 Apr 2022 19:35:47 +0200 Subject: [PATCH] freedesktop: install icons to match the versioned Icon name used in the .desktop file --- gtk2_ardour/wscript | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/gtk2_ardour/wscript b/gtk2_ardour/wscript index f561496f30..d9b35a900e 100644 --- a/gtk2_ardour/wscript +++ b/gtk2_ardour/wscript @@ -917,12 +917,13 @@ def build(bld): bld.install_files (os.path.join (bld.env['PREFIX'], 'share/appdata'), obj.target) # install desktop icon files - bld.install_as('${PREFIX}/share/icons/hicolor/16x16/apps/ardour6.png', 'resources/Ardour-icon_16px.png') - bld.install_as('${PREFIX}/share/icons/hicolor/22x22/apps/ardour6.png', 'resources/Ardour-icon_22px.png') - bld.install_as('${PREFIX}/share/icons/hicolor/32x32/apps/ardour6.png', 'resources/Ardour-icon_32px.png') - bld.install_as('${PREFIX}/share/icons/hicolor/48x48/apps/ardour6.png', 'resources/Ardour-icon_48px.png') - bld.install_as('${PREFIX}/share/icons/hicolor/256x256/apps/ardour6.png', 'resources/Ardour-icon_256px.png') - bld.install_as('${PREFIX}/share/icons/hicolor/512x512/apps/ardour6.png', 'resources/Ardour-icon_512px.png') + icon_file_name = str (bld.env['lwrcase_dirname']) + '.png' + bld.install_as('${PREFIX}/share/icons/hicolor/16x16/apps/' + icon_file_name, 'resources/Ardour-icon_16px.png') + bld.install_as('${PREFIX}/share/icons/hicolor/22x22/apps/'+ icon_file_name, 'resources/Ardour-icon_22px.png') + bld.install_as('${PREFIX}/share/icons/hicolor/32x32/apps/'+ icon_file_name, 'resources/Ardour-icon_32px.png') + bld.install_as('${PREFIX}/share/icons/hicolor/48x48/apps/'+ icon_file_name, 'resources/Ardour-icon_48px.png') + bld.install_as('${PREFIX}/share/icons/hicolor/256x256/apps/'+ icon_file_name, 'resources/Ardour-icon_256px.png') + bld.install_as('${PREFIX}/share/icons/hicolor/512x512/apps/'+ icon_file_name, 'resources/Ardour-icon_512px.png') # Keybindings