View Single Post
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#15
Hrm, noticed original battery applet gets activated when you use my sed conmand line to comment mandatory

Anyway, delete that postinst with just that sed line and make a preinst with:

#!/bin/sh

qDesktop=/usr/share/applications/hildon-status-bar/hildon-status-bar-battery.desktop

12MandCheck=`cat $qDesktop | grep Mandatory`

if [ x$12MandCheck = xMandatory=true ]; then
sed -i 's/^Mandatory/#Mandatory/' $qDesktop
fi
Running it as preinst should stop maemo from realising desktop file changed and reenabling original applet.

Last edited by qwerty12; 2008-11-11 at 23:44.
 

The Following 2 Users Say Thank You to qwerty12 For This Useful Post: