![]() |
Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
can i install QBW in pc
how to do this |
Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
Hi, No!No!No!Yes!
I love your app, I have been busy replacing my regular widgets with beecons for the past week or so, and I am currently working on a "like button" for my mp3 player", I dump a bunch of new songs onto a folder, and if I hear a song i like, I just press the LIKEbutton, and it saves the song file to another folder. it seems to be working well, but I think I found a bug in queenbeecon, I am using QBW V1.3.3, and my N900 firmware is up to date. the LIKEbutton uses the DBUS to get the currently playing song from the media player (I am using Mediabox player), but if the song titles have single quotes in them (" ' "), $QBW_DBUS_VERBOSE_OUTPUT returns NOTHING, in fact, the entire script seems to crash, returning an exit code 2. I set up a demo beecon that was taken from your own Wiki page, with a slight modification to include a " ' " in a DBUS output string. Code:
run-standalone.sh dbus-send --system --type=signal /com/example/app/Signal com.example.app.Signal.Test string:'Oh' string:'No!!!' string:'More QBWs!!!' string:"single quotes don't work here" boolean:true uint32:10000 "single quotes don't work here" to "single quotes dont work here" the script works fine. here is the beecon that demonstrates the bug (original script code from Wiki): Code:
[queen-beecon-header] Thanks for reading :) |
Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
Quote:
|
Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
Quote:
Actually, I think the problem here is the: Code:
echo '$QBW_DBUS_VERBOSE_OUTPUT' Code:
echo '.....single quotes don't work here...' How about trying with: Code:
echo "$QBW_DBUS_VERBOSE_OUTPUT" Like for example: '...$$$ for nothing...' One more thing to try (shell Here Documents): Code:
echo <<LikeThisSong |
Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
i usual i use the cat command so i can see my notes but i need a script that i will access it from my desktop, and the location of my note is /home/user/MyDocs/note.html
how can i do that ? i have this script but i can't open my text location: dbus-send --type=method_call --dest=com.nokia.HildonDesktop.AppMgr /com/nokia/HildonDesktop/AppMgr com.nokia.HildonDesktop.AppMgr.LaunchApplication string:"osso_notes" please can anyone correct it, thank you |
Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
Quote:
Code:
QT="'"; echo $QT$QBW_DBUS_VERBOSE_OUTPUT$QT like this: "single quotes don" but this is a far more serious problem, since the entire script crashes, and I get no output at all. I will add some code to the demo beecon before $QBW_DBUS_VERBOSE_OUTPUT is read to confirm that the beecon code crashes, but I'm pretty sure it does crash . Quote:
the same as doing: Code:
QBW_DBUS_VERBOSE_OUTPUT="single quotes don't work here" the problem is that $QBW_DBUS_VERBOSE_OUTPUT is being set internally by YOUR code, so there isn't anything I can do to correct it after it was set by QBW. Please try out the beecon & DBUS command I posted above, and see for yourself . thanks :) |
Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
|
Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
well, I was wrong,
it does seem to work, but it's not very useful, unfortunately. it only displays the entire dbus output, you can't pass it to another variable for further processing, and a here-doc that was posted on the page you linked to is SUPPOSED to pass the output to a variable doesn't seem to work :( Code:
variable=$(cat <<SETVAR or even look to see if it can be fixed ? I would think it can be fixed, since the dbus output shows up in the QBW logs & is formatted correctly . Thanks for pointing me to the here-docs though, at least I learned something new for all my effort . |
Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
Quote:
It's just a matter of scripting skills and shell knowledge. http://i.imgur.com/Yozhy.jpg |
Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
well, if a single character (" ' ") causing an entire script to crash isn't a bug, than I don't know what is, (and it does crash, I checked).
I'm not trying to do anything unusual in the beecon, just trying to extract data from $QBW_DBUS_VERBOSE_OUTPUT, and it works just fine, until it encounters a single quote in the dbus message, how is that not a bug ? why would I need to add several extra lines of code just to handle quote chars when a: "my_variable=$QBW_DBUS_VERBOSE_OUTPUT" should suffice for ALL printable chars.? and that screenshot you posted shows that the script is clearly NOT running on your widget. |
All times are GMT. The time now is 12:14. |
vBulletin® Version 3.8.8