From 6cef2acb849067e60083a10e6903e45fbfe978b2 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 15 Jul 2016 12:13:57 +0200 Subject: Icewease -> FirefoxESR transition: Create legacy symlinks for iceweasel.png so that our Webbrowser.desktop links do still show an icon. --- debian/itzks-systems-common.postrm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'debian/itzks-systems-common.postrm') diff --git a/debian/itzks-systems-common.postrm b/debian/itzks-systems-common.postrm index 065d9ad..5b2439a 100755 --- a/debian/itzks-systems-common.postrm +++ b/debian/itzks-systems-common.postrm @@ -21,6 +21,20 @@ case "$1" in if ! dpkg-divert --list | grep passwd.gnu 1>/dev/null 2>/dev/null; then dpkg-divert --package itzks-systems-common --remove /usr/bin/passwd fi + + # interim solution for missing desktop icons for our "Webbrowser" desktop link + find /usr/share/icons/hicolor -name iceweasel.png | while read icon_file; do + if [ -h $icon_file ]; then + rm -f $icon_file + fi + done + if which update-icon-cache 1>/dev/null; then + update-icon-cache /usr/share/icons/hicolor + fi + if which update-icon-cache.gtk2 1>/dev/null; then + update-icon-cache.gtk2 /usr/share/icons/hicolor + fi + ;; upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; -- cgit v1.2.3