View Single Post
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#5
Further...

Code:
remember_me()
{
        run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw$QBW_ID oh.no.more.qbw.set_param_string string:"rememberMe" string:"$TAB:$LEAGUE:$FAVLONG:$PREVDATE:$DISPLAYDATE:$NEXTDATE" string:"";
}
As of release >=1.0.5 this Shell script function which uses the QBW DBUS methods interface, can be substituded by a quicker method:
Just echo the following string as output of your command:
Code:
QBW_REMEMBER_ME(<content to be remembered>)
no angle brackets; escape "close round bracket" like this "\)" to store it as ")" and set <content to be remembered> to what you would like to be stored in permanent rememberMe parameter

So function remember_me() might be rewritten as:
Code:
remember_me()
{
        echo "QBW_REMEMBER_ME($TAB:$LEAGUE:$FAVLONG:$PREVDATE:$DISPLAYDATE:$NEXTDATE)"
}
Note that command output will not be affected by this echoed text as replacement will take place before printing the command result text to the widget's canvas.
__________________
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