updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / lastfm-msk-light / lastfm-msk.install
blobd7ae08b3ff6c83ec4f6cc2bde1767fad07075293
1 my_available() {
2         which "$1" 1>/dev/null 2>&1
5 post_upgrade() {
6         if my_available xdg-icon-resource; then
7                 printf 'Updating icon cache... '
8                 xdg-icon-resource forceupdate --theme hicolor --mode system
9                 echo 'done.'
10         fi
12         if my_available update-desktop-database; then   
13                 printf 'Updating desktop database... '
14                 update-desktop-database
15                 echo 'done.'
16         fi
19 post_remove() {
20         post_upgrade
23 post_install() {
24         post_upgrade
26         echo '>>> Firefox can handle the lastfm protocol'
27         echo '>>> if you add the following string variable'
28         echo '>>> to your about:config:'
29         echo '>>> "network.protocol-handler.app.lastfm"'
30         echo '>>> with a value of: "/usr/bin/lastfm"'