summaryrefslogtreecommitdiff
path: root/debian/itzks-systems-common.postinst
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-07-15 12:13:57 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-07-15 12:13:57 +0200
commit6cef2acb849067e60083a10e6903e45fbfe978b2 (patch)
treec1cf1fec1f2508dc707de3ba464eebe01230e8de /debian/itzks-systems-common.postinst
parentcb130761301a53681791061b415547f139a0ba28 (diff)
downloaditzks-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/itzks-systems-common.postinst')
-rwxr-xr-xdebian/itzks-systems-common.postinst15
1 files changed, 15 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