I actually tried that, but I dont know the key assignments. ZHKey.h says this:
#define EZX_KEY_VALUE_HOME Qt::Key_F4
I tried using that but it wasn't working for my E6 (maybe changed assignments, that one is for A760)
@khizerk
I suggest when we press the power button on the phone the pictureflow application should exit, what do u think ???
I actually tried that, but I dont know the key assignments. ZHKey.h says this:
#define EZX_KEY_VALUE_HOME Qt::Key_F4
I tried using that but it wasn't working for my E6 (maybe changed assignments, that one is for A760)
@khizerk
see what you can do about that,
Also,
I made pictureflow as my default application for viewing images.
What I noticed is that, sometimes it works and sometimes I just see blank screen
can tell you the senario as me myself dont know. Sometimes even file what was succcessfully open the first time, did not open the second time
Me confused
Bikas
Hmm, thats strange....maybe something to do with the script (I had to learn the basics to enable command line arguments). I'll try to test the myself a bit more, but uptil now strangely I haven't had a problem like this...
And yeah, any special characters (other than underscore) in the name of those pics?
-----------Edit-------------------
Found the source of the problem, its the script. Its not dealing well with when there's a space in the name of the picture...I guess it breaks it into two arguments. Any solutions?
Last edited by khizerk; 01-22-2009 at 07:14 AM.
you can try something like
echo "world map.jpg" | sed 's/ /\\ /g'
this can replace all spaces with '\space' i.e escape all the spaces
Hope that work, let me know
cheers
Bikas
But that will echo worldmap.jpg right?
That won't be right as the actual file name must be input. I have another idea, I'll test it out.
No the output of
echo "world map.jpg" | sed 's/ /\\ /g'
will be 'world\ map.jpg'
What I ment was we can do something like this for the shell scrip
#!/bin/sh
MYNAME=`basename $0`
MYPATH=`echo $0 | sed -e 's/'$MYNAME'//g'`
qz_file="$2"
qzfile=`basename $2`
qz_file=`echo $qz_file | sed 's/ /\\ /g'`
qzfile=`echo $qzfile | sed 's/ /\\ /g'`
export QTDIR=/usr/lib/ezx
export PATH=$MYPATH:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
cd $MYPATH
./pictureflow "$qzfile" "$qz_file"
Its really difficult for me to test it, so you will have to do that for me
Please let me know in case you have any doubt
Thanks
Bikas
Sorry I guess it should be
qz_file=`echo $qz_file | sed 's/ /\\\ /g'`
qzfile=`echo $qzfile | sed 's/ /\\\ /g'`
I tested in linux ,
Test output :
$ bikas="world map of india.jpg"
$ bikas=`echo $bikas | sed 's/ /\\\ /g'`
$ echo $bikas
world\ map\ of\ india.jpg
Just try this I am not sure but should work I guess
Thanks
Bikas
I figured I am not that good with scripting so I should rely on the code more :P
Anyway, here's a version with the space problem fixed....couldn't fix the minimization issue, but I can't put more time into this right now...
Test please!
Hi khizerk
I think we can understand that you also have other things to do and I really appreciate you working out of the box for us.
I really really wanna thank you for your effort.
I have installed the new version, it works just great and the space in filename problem seems to be fixed.
I will continue testing it and let you know.
Thanks again for all the troubles.
Bikas