changes to fix compilation under maemo5 - provided by Darren Long
[monky] / debian / postinst
1 #! /bin/sh
2 #
3 #      conky - postinst
4 #
5 #      Copyright 2008 -2009 Faheem Pervez <trippin1@gmail.com> and Valério Valério <vdv100@gmail.com>
6 #                       
7 #                                               
8 #      This program is free software; you can redistribute it and/or modify
9 #      it under the terms of the GNU General Public License as published by
10 #      the Free Software Foundation; either version 2 of the License, or
11 #      (at your option) any later version.
12 #
13 #      This program is distributed in the hope that it will be useful,
14 #      but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 #      GNU General Public License for more details.
17 #
18 #      You should have received a copy of the GNU General Public License
19 #      along with this program; if not, write to the Free Software
20 #      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #
22
23 if [ -r /etc/osso-af-init/af-defines.sh ]; then
24   source /etc/osso-af-init/af-defines.sh
25 fi
26
27 if [ -x /usr/bin/dbus-send -a -x /usr/bin/gtk-update-icon-cache ]; then
28   dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Updating icon cache" || true
29 fi
30
31 if [ -x /usr/bin/gtk-update-icon-cache ]; then
32   gtk-update-icon-cache -f /usr/share/icons/hicolor || true
33 fi
34
35 case "$1" in
36     configure)
37         [ -z "$2" ] && \
38          if [ -x /usr/bin/maemo-select-menu-location ]; then
39             maemo-select-menu-location conky.desktop 
40          fi
41         ;;
42 esac
43
44 exit 0