From 34cdfd9b83e85eb8cb13273d10712bb840718e84 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Wed, 15 Sep 2004 14:45:28 +0000 Subject: subapplet: added postinst/postrm actions BKrev: 41485588BbXG4mdbATO2XzoG5sIntw --- subapplet/subapplet_1.0.8.oe | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'subapplet') diff --git a/subapplet/subapplet_1.0.8.oe b/subapplet/subapplet_1.0.8.oe index eb786d8f86..cf77599c5e 100644 --- a/subapplet/subapplet_1.0.8.oe +++ b/subapplet/subapplet_1.0.8.oe @@ -3,7 +3,7 @@ SECTION = "base" PRIORITY = "optional" LICENSE = "GPL" MAINTAINER = "Marcin Juszkiewicz " -PR = "r1" +PR = "r2" SRC_URI = "${SOURCEFORGE_MIRROR}/subapplet/subapplet-1.0.8.tar.gz" @@ -18,3 +18,19 @@ do_install() { install -m 0644 *.png ${D}/${palmtopdir}/pics/subapplet/ oe_libinstall -so -C rel${palmtopdir}/plugins/applets libsubapplet ${D}/${palmtopdir}/plugins/applets/ } + +pkg_postinst() { +#!/bin/sh +if pidof -s qpe >/dev/null; then + /opt/QtPalmtop/bin/qcop QPE/TaskBar "reloadApplets()" +else + exit 0 +fi + if [ -n "$D" ]; then false; fi +} + +pkg_postrm() { +#!/bin/sh +/opt/QtPalmtop/bin/qcop QPE/TaskBar "reloadApplets()" + if [ -n "$D" ]; then false; fi +} -- cgit v1.2.3