View Single Post
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#442
One more thingie...
Try to avoid use of "\n" newline in beecon command:
Code:
if [ $QBW_EXEC_REASON == "QBW_TIMER_UPDATE" ] ; then  \n  if [ "$QBW_REMEMBER_ME" = locked ] ; then\n    ...
Proper way to deal with complex one-liner shell statements is the ";" semicolon character (this is an abstract example for QBW On Desktop Dialer Widget):
Code:
DIALER_QBW_ID=id15;DIGIT="*    +";case $QBW_HOTSPOT_PRESS in [0147]) DIGIT="*" ;; [369]) DIGIT="+" ;; *) exit 0 ;; esac; if [ "$QBW_EXEC_REASON" != "QBW_CLICK" ];then exit 0;fi; DIALLED=`run-standalone.sh dbus-send --session --print-reply --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw$DIALER_QBW_ID oh.no.more.qbw.get_current_results_text | tail -1 | cut -d\\" -f2`; if [ "$DIALLED" == "DIAL NUMBER" ] ;then DIALLED=""; fi; run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw$DIALER_QBW_ID oh.no.more.qbw.exec string:"echo \\"$DIALLED\\"\\"$DIGIT\\""
__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras
 

The Following 2 Users Say Thank You to No!No!No!Yes! For This Useful Post: