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