minor build fix
[qstardict] / debian / qstardict.postinst
index 2cf7aa7..1c71f5c 100755 (executable)
@@ -1,11 +1,14 @@
 #!/bin/sh
 
-echo "Updating GTK's icon cache"
 gtk-update-icon-cache -f /usr/share/icons/hicolor
 
+MAEMO_SELECT_MENU=/usr/bin/maemo-select-menu-location
+
 oldversion="$2"
-if [ -z "$oldversion" ]; then
-  if ! maemo-select-menu-location qstardict.desktop; then
-    echo "Couldn't launch maemo-select-menu-location"
+if [ -f $MAEMO_SELECT_MENU ]; then
+  if [ -z "$oldversion" ]; then
+    maemo-select-menu-location qstardict.desktop
   fi
 fi
+
+exit 0