aboutsummaryrefslogtreecommitdiff
path: root/desktop/simplenote/doinst.sh
diff options
context:
space:
mode:
authorcarriunix <carriunix@gmail.com>2022-07-16 04:29:40 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-07-17 06:40:09 +0700
commitf6bb42d3c882fc7def12f46a8c057b1b3050c008 (patch)
treec4325ca098952fa0b4ca93185d15c5585c2c9e9a /desktop/simplenote/doinst.sh
parent5a5d4bd444970cfb63217e312c5fc04951d479be (diff)
desktop/simplenote: Added (Note taking program)
Taking over Skaendo's version for 14.2. Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/simplenote/doinst.sh')
-rw-r--r--desktop/simplenote/doinst.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/desktop/simplenote/doinst.sh b/desktop/simplenote/doinst.sh
new file mode 100644
index 0000000000000..b7d3b71f74dd2
--- /dev/null
+++ b/desktop/simplenote/doinst.sh
@@ -0,0 +1,20 @@
+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 other icon themes are installed, then add to/modify this as needed
+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
+
+if [ -e usr/share/glib-2.0/schemas ]; then
+ if [ -x /usr/bin/glib-compile-schemas ]; then
+ /usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas >/dev/null 2>&1
+ fi
+fi