diff options
Diffstat (limited to 'debian')
| -rwxr-xr-x | debian/itzks-systems-common.postinst | 15 | ||||
| -rwxr-xr-x | debian/itzks-systems-common.postrm | 14 | 
2 files changed, 29 insertions, 0 deletions
| 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 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)  		;; | 
