summaryrefslogtreecommitdiff
path: root/libre/doublecmd/doublecmd.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-04 03:06:01 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-04 03:06:01 -0300
commitae77a34fccb25b2322c7b96f23ade238b4f49b06 (patch)
treee408d398aeca6df8667c0d3c573e1f49f992a8d1 /libre/doublecmd/doublecmd.install
parent877a21495c7bbd560b59653c352bd4592b41f32e (diff)
parentdcb9f94b1f184a61c9838b20919eef1842a07091 (diff)
Merge branch 'master' of ssh://lukeshu.com:1863/srv/git/mirror/parabola/abslibre
Diffstat (limited to 'libre/doublecmd/doublecmd.install')
-rw-r--r--libre/doublecmd/doublecmd.install34
1 files changed, 34 insertions, 0 deletions
diff --git a/libre/doublecmd/doublecmd.install b/libre/doublecmd/doublecmd.install
new file mode 100644
index 000000000..c27b5bb23
--- /dev/null
+++ b/libre/doublecmd/doublecmd.install
@@ -0,0 +1,34 @@
+update_icons() {
+
+ # Setup Menus
+ if which update-desktop-database
+ then
+ update-desktop-database -q /usr/share/applications > /dev/null 2>&1
+ fi
+
+ # Setup MIME types
+ if which update-mime-database
+ then
+ update-mime-database /usr/share/mime > /dev/null 2>&1
+ fi
+
+ # Setup Icons
+ touch -c /usr/share/icons/hicolor
+ if which gtk-update-icon-cache
+ then
+ gtk-update-icon-cache -tq /usr/share/icons/hicolor > /dev/null 2>&1
+ fi
+
+}
+
+post_install() {
+ update_icons
+}
+
+post_upgrade() {
+ update_icons
+}
+
+post_remove() {
+ update_icons
+}