summaryrefslogtreecommitdiffstats
path: root/development/postman
diff options
context:
space:
mode:
author Ebben Aries <earies@dscp.org>2023-09-09 17:25:18 -0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2023-09-17 00:10:25 +0700
commit9d98a6a1cef0090d41bd4d16b75e56846328ddd0 (patch)
tree7a0f455cd0edb4c3347adb5cc93e73bccdd3204a /development/postman
parentbd1e55237dc5c8d870cbe7b208649f63cbb9bdc8 (diff)
downloadslackbuilds-9d98a6a1cef0090d41bd4d16b75e56846328ddd0.tar.gz
slackbuilds-9d98a6a1cef0090d41bd4d16b75e56846328ddd0.tar.xz
development/postman: Add desktop entry.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/postman')
-rw-r--r--development/postman/doinst.sh10
-rw-r--r--development/postman/postman.SlackBuild3
-rw-r--r--development/postman/postman.desktop8
3 files changed, 21 insertions, 0 deletions
diff --git a/development/postman/doinst.sh b/development/postman/doinst.sh
index 39f9be1ff4..e69b296100 100644
--- a/development/postman/doinst.sh
+++ b/development/postman/doinst.sh
@@ -1,2 +1,12 @@
( cd usr/bin ; rm -rf postman )
( cd usr/bin ; ln -sf /opt/postman/app/Postman postman )
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/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 -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/development/postman/postman.SlackBuild b/development/postman/postman.SlackBuild
index 34c65f66ac..d87621a607 100644
--- a/development/postman/postman.SlackBuild
+++ b/development/postman/postman.SlackBuild
@@ -97,6 +97,9 @@ rm -rf Postman
mkdir -p $PKG/opt/$PRGNAM
cp -a * $PKG/opt/$PRGNAM
+mkdir -p $PKG/usr/share/applications
+cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/development/postman/postman.desktop b/development/postman/postman.desktop
new file mode 100644
index 0000000000..358a963712
--- /dev/null
+++ b/development/postman/postman.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Postman
+Comment=Postman API Platform
+Exec=/usr/bin/postman %U
+Icon=/opt/postman/app/resources/app/assets/icon.png
+Terminal=false
+Type=Application
+Categories=Development;