From 0b091f3821e9cee8e542cf5a4d67d295b08c99c5 Mon Sep 17 00:00:00 2001 From: Botspot <54716352+Botspot@users.noreply.github.com> Date: Fri, 5 Jul 2024 02:36:42 -0500 Subject: [PATCH] api: get_icon_from_package: avoid selecting symbolic icons even if these are a slightly larger filesize, they are almost always a poor choice --- api | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api b/api index 025abd07e1..baba2bd963 100755 --- a/api +++ b/api @@ -784,7 +784,7 @@ get_icon_from_package() { #given a package-name, find all png files that it inst #Example: given the 'shotwell' package, this will find the 'shotwell-common' package, as well as others extra_packages+=" $(package_dependencies "$package" | sed 's/, \||/\n/g' | awk '{print $1}' | grep "^$package" | sort | uniq | tr '\n' ' ')" done - dpkg-query -L "$@" $extra_packages 2>/dev/null | grep '\.png$\|\.svg$' | grep '/icons/\|/pixmaps/' | xargs wc -c | grep -v ' total' | sort -nr | head -n1 | sed 's/ / /g' | sed 's/^ //g' | tr ' ' '\n' | tail -n +2 + dpkg-query -L "$@" $extra_packages 2>/dev/null | grep '\.png$\|\.svg$' | grep '/icons/\|/pixmaps/' | grep -v /symbolic/ | xargs wc -c | grep -v ' total' | sort -nr | head -n1 | sed 's/ / /g' | sed 's/^ //g' | tr ' ' '\n' | tail -n +2 } ubuntu_ppa_installer() { #setup a PPA on an Ubuntu distro. Arguments: ppa_name