summaryrefslogtreecommitdiff
path: root/libre/doublecmd-libre/doublecmd.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-08-20 18:22:12 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-08-20 18:22:12 -0300
commit4e5bf771780bac1ea5f48cac4a2642dbf0b662b0 (patch)
tree3cf4067278ee08db86e442816cf0aa59d0b2e6fb /libre/doublecmd-libre/doublecmd.install
parent2aa5e5c7fcc998d619cc9ff49f1ea2b2fb6d89c3 (diff)
doublecmd-gtk2-libre and doublecmd-qt-libre: new packages for [libre] repo
Diffstat (limited to 'libre/doublecmd-libre/doublecmd.install')
-rw-r--r--libre/doublecmd-libre/doublecmd.install34
1 files changed, 34 insertions, 0 deletions
diff --git a/libre/doublecmd-libre/doublecmd.install b/libre/doublecmd-libre/doublecmd.install
new file mode 100644
index 000000000..40d56528f
--- /dev/null
+++ b/libre/doublecmd-libre/doublecmd.install
@@ -0,0 +1,34 @@
+update_icons() {
+
+ # Setup Menus
+ if which update-desktop-database
+ then
+ update-desktop-database -q /usr/share/applications
+ fi
+
+ # Setup MIME types
+ if which update-mime-database
+ then
+ update-mime-database /usr/share/mime >/dev/null
+ 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
+ fi
+
+}
+
+post_install() {
+ update_icons
+}
+
+post_upgrade() {
+ update_icons
+}
+
+post_remove() {
+ update_icons
+}