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.postinst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'debian/itzks-systems-common.postinst') diff --git a/debian/itzks-systems-common.postinst b/debian/itzks-systems-common.postinst index 4c0964b..b2753c3 100755 --- a/debian/itzks-systems-common.postinst +++ b/debian/itzks-systems-common.postinst @@ -29,6 +29,21 @@ case "$1" in # write the school name to an /etc/ file echo $RET 1> /etc/debian-edu/itzks.school + # interim solution for missing desktop icons for our "Webbrowser" desktop link + find /usr/share/icons/hicolor -name firefox-esr.png | while read icon_file; do + cd $(dirname $icon_file) + if [ ! -e "iceweasel.png" ]; then + ln -s $(basename $icon_file) iceweasel.png + fi + cd - 1>/dev/null + done + if which update-icon-cache 1>/dev/null; then + update-icon-cache /usr/share/icons/hicolor + fi + if update-icon-cache.gtk2 1>/dev/null; then + update-icon-cache.gtk2 /usr/share/icons/hicolor + fi + # deploy Wine desktop fixes if Wine is installed if which update-desktop-database 1>/dev/null && which wine 1>/dev/null; then if [ ! -e /usr/share/applications/wine.desktop ]; then -- cgit v1.2.3