OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: craigtyson on March 03, 2005, 05:35:53 pm
-
I have several scripts and a bin file (unzip) which would be nice to launch with a tap on an assosiated file type.
Iv added the file type into mime.types
Created a desktop icon
and added $1 to my scripts so they will pickup a filename from the file browser tab
It dont work. Iv read that QTopia does not pass the filename as a paramiter so how can bash (or a command) pick it up?
All I realy want to do is click on a zip file to unzip it to a folder of the same name.
Any ideas?
-
My understanding is that for Qtopia to associate a file type with an application, the application MUST have a .desktop file and have the correct MimeType entry in the desktop file. (have a look at the opera.desktop file for and example).
Don't know if this will allow you to do what you want to do however. You might try something like opie-sh
Stu
-
Yup done all that. Have a nice zip icon on all my zip files now. The script even launches but I cannt see how to get the file name into the script.
Tried using opie-sh still no good.
-
Is it done by sending a QCop command to the app after it has started? Just a thought.
Si
-
A who?. Where would I get some documentation on stuff like this? I looked through the Trolltech site but all they had was for developers. Not simple ish stuff like this