added the missing script

This commit is contained in:
germedeb 2022-02-05 21:21:00 -03:00
parent b768ae88e3
commit 56553c9a6e

31
missing.sh Executable file
View File

@ -0,0 +1,31 @@
#! /bin/bash
# this file is part of missing-icon-reporter
# and it's AGPLv3 licensed.
desktopsearch () {
for DESKTOP in /usr/share/applications/*.desktop
do
if [[ -f "${DESKTOP}" ]]; then
cat ${DESKTOP} | grep 'Icon=' | sed s/Icon=//
fi
done
}
iconsearch () {
for ICON in ~/.icons/aleta/*/*/*.png
do
if [[ -f "${ICON}" ]]; then
N=$(basename ${ICON} .png)
echo ${N}
fi
done
}
desktopsearch | sort | uniq > /tmp/.missing-icon-reporter-desktopsearch.tmp
iconsearch | sort | uniq > /tmp/.missing-icon-reporter-iconsearch.tmp
cat /tmp/.missing-icon-reporter-desktopsearch.tmp /tmp/.missing-icon-reporter-iconsearch.tmp | sort | uniq > /tmp/.missing-icon-reporter-comparisonsearch.tmp
cat /tmp/.missing-icon-reporter-comparisonsearch.tmp /tmp/.missing-icon-reporter-iconsearch.tmp /tmp/.missing-icon-reporter-iconsearch.tmp | sort | uniq
# diff --suppress-common-lines /tmp/.missing-icon-reporter-desktopsearch.tmp /tmp/.missing-icon-reporter-iconsearch.tmp