summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Andrew Clemons2021-08-22 12:07:07 +0200
committer Willy Sudiarto Raharjo2021-08-25 07:11:38 +0200
commit1a98d8dd9cfcda19e30c3617fb08dfa4e151f50c (patch)
tree7772f1f20dc77380b7450a7352c52a21e9a8d258
parentb775a8b25ecd130b530edd1c89f19ef3d4d000a0 (diff)
downloadslackbuilds-1a98d8dd9cfcda19e30c3617fb08dfa4e151f50c.tar.gz
misc/yubioath-desktop: Fix desktop file handling.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--misc/yubioath-desktop/doinst.sh3
-rw-r--r--misc/yubioath-desktop/yubioath-desktop.SlackBuild1
2 files changed, 4 insertions, 0 deletions
diff --git a/misc/yubioath-desktop/doinst.sh b/misc/yubioath-desktop/doinst.sh
new file mode 100644
index 0000000000..5fb28930db
--- /dev/null
+++ b/misc/yubioath-desktop/doinst.sh
@@ -0,0 +1,3 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
diff --git a/misc/yubioath-desktop/yubioath-desktop.SlackBuild b/misc/yubioath-desktop/yubioath-desktop.SlackBuild
index 6ca4593c42..2b0fd0e736 100644
--- a/misc/yubioath-desktop/yubioath-desktop.SlackBuild
+++ b/misc/yubioath-desktop/yubioath-desktop.SlackBuild
@@ -96,6 +96,7 @@ cp $CWD/$PRGNAM-$VERSION-linux.AppImage $PKG/usr/bin/$PRGNAM
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE