aboutsummaryrefslogtreecommitdiff
path: root/development/jdk
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2012-09-29 15:25:17 -0400
committerRobby Workman <rworkman@slackbuilds.org>2012-09-29 17:17:42 -0500
commit3f6f553556dc1be8c732a41dad438f5d89dfdbac (patch)
tree07832ed0504885b7b6d6de7e7e68e8ba0d9dfa81 /development/jdk
parentb3c9b66d9f68ebdee73c2566cddd15972c4ec75a (diff)
development/jdk: Fixed (Handle desktop, mime, and icon files)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'development/jdk')
-rw-r--r--development/jdk/jdk.SlackBuild16
1 files changed, 15 insertions, 1 deletions
diff --git a/development/jdk/jdk.SlackBuild b/development/jdk/jdk.SlackBuild
index 02cb9fb0c4e1..0df22fb5ce68 100644
--- a/development/jdk/jdk.SlackBuild
+++ b/development/jdk/jdk.SlackBuild
@@ -25,7 +25,7 @@
PRGNAM=jdk
VERSION=7u7
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
DVER=1.7.0_07
@@ -116,6 +116,20 @@ if [ -L libjsig.so ]; then
fi
# End cleanup.
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
+
EOF
# Install the desktop/mime files: