diff options
-rw-r--r-- | debian/changelog | 3 | ||||
-rwxr-xr-x | debian/itzks-systems-common.postinst | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog index b0b948d..2c96019 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,9 @@ itzks-systems (2015.07.15.3) UNRELEASED; urgency=medium for them. * etc/standardskriver.cfg: + Add Schulbibliothek-printer (EBG). + * debian/itzks-systems-common.postinst: + + Only execute update-desktop-database if it exists (i.e., if + bin:package desktop-file-utils is installed). -- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Wed, 15 Jul 2015 13:53:44 +0200 diff --git a/debian/itzks-systems-common.postinst b/debian/itzks-systems-common.postinst index a2e7da4..4c0964b 100755 --- a/debian/itzks-systems-common.postinst +++ b/debian/itzks-systems-common.postinst @@ -30,7 +30,7 @@ case "$1" in echo $RET 1> /etc/debian-edu/itzks.school # deploy Wine desktop fixes if Wine is installed - if which wine 1>/dev/null; then + if which update-desktop-database 1>/dev/null && which wine 1>/dev/null; then if [ ! -e /usr/share/applications/wine.desktop ]; then cp /usr/share/itzks-systems-common/wine-fixes/wine.desktop /usr/share/applications/wine.desktop fi @@ -47,7 +47,7 @@ case "$1" in cp /usr/share/itzks-systems-common/wine-fixes/wine-bin /usr/lib/mime/packages/wine-bin fi update-desktop-database - else + elif which update-desktop-database 1>/dev/null; then if [ -e /usr/share/applications/wine.desktop ]; then rm -f /usr/share/applications/wine.desktop fi |