diff options
| author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-07-15 12:13:57 +0200 | 
|---|---|---|
| committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-07-15 12:13:57 +0200 | 
| commit | 6cef2acb849067e60083a10e6903e45fbfe978b2 (patch) | |
| tree | c1cf1fec1f2508dc707de3ba464eebe01230e8de /debian | |
| parent | cb130761301a53681791061b415547f139a0ba28 (diff) | |
| download | itzks-systems-6cef2acb849067e60083a10e6903e45fbfe978b2.tar.gz itzks-systems-6cef2acb849067e60083a10e6903e45fbfe978b2.tar.bz2 itzks-systems-6cef2acb849067e60083a10e6903e45fbfe978b2.zip  | |
Icewease -> FirefoxESR transition: Create legacy symlinks for iceweasel.png so that our Webbrowser.desktop links do still show an icon.
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)  		;;  | 
