X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=debian%2Fpostinst;fp=debian%2Fpostinst;h=abc2ec282ab3c459555c49823cbc918d12d198f5;hb=9a0b29ec1f8a844e2ad24f6d4383de0f0792f31b;hp=0000000000000000000000000000000000000000;hpb=c3df8e47727fc796a31b1056f4e76c1ee60b1390;p=monky diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..abc2ec2 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,44 @@ +#! /bin/sh +# +# conky - postinst +# +# Copyright 2008 -2009 Faheem Pervez and Valério Valério +# +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# + +if [ -r /etc/osso-af-init/af-defines.sh ]; then + source /etc/osso-af-init/af-defines.sh +fi + +if [ -x /usr/bin/dbus-send -a -x /usr/bin/gtk-update-icon-cache ]; then + dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Updating icon cache" || true +fi + +if [ -x /usr/bin/gtk-update-icon-cache ]; then + gtk-update-icon-cache -f /usr/share/icons/hicolor || true +fi + +case "$1" in + configure) + [ -z "$2" ] && \ + if [ -x /usr/bin/maemo-select-menu-location ]; then + maemo-select-menu-location conky.desktop + fi + ;; +esac + +exit 0