diff options
Diffstat (limited to 'qtgrace.install')
-rw-r--r-- | qtgrace.install | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/qtgrace.install b/qtgrace.install index 702c510609bb..d441bb310a60 100644 --- a/qtgrace.install +++ b/qtgrace.install @@ -1,14 +1,32 @@ +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 + +} + + post_install() { - echo "update mime database..." - update-mime-database usr/share/mime > /dev/null - echo "update desktop mime database..." - update-desktop-database -q + update_icons + echo ">> Activate FFTW3- and libHaru(PDF)-support:" + echo ">> See Preferences-->Micellaneous and see whether the libraries are usable and activated." } post_upgrade() { - post_install $1 + post_install } post_remove() { - post_install $1 + update_icons } + + |