From 0873eff3fe57c9e108ef0cf5f5b700bbb449629a Mon Sep 17 00:00:00 2001 From: "coadde [Márcio Alexandre Silva Delgado]" Date: Thu, 4 Sep 2014 02:24:10 -0300 Subject: rename to doublecmd --- libre/doublecmd/doublecmd.install | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 libre/doublecmd/doublecmd.install (limited to 'libre/doublecmd/doublecmd.install') 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 +} -- cgit v1.2.3-54-g00ecf