Author Topic: Launching Scripts / Bin Files From Qpe  (Read 2358 times)

craigtyson

  • Sr. Member
  • ****
  • Posts: 462
    • View Profile
Launching Scripts / Bin Files From Qpe
« 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?
Craig
SL-C1000, Angstrom GPE 2007.12r13
Ambicom WL1100C, SanDisk UltraII 1GB SD
 
Old Faithfull - SL-5500 battery out of the C750 (see below) TKC v1 (New) 1GB SD
Dead - SL-C750, Cacko 1.23 lite (Dropped, very messy!)
Ambicom WL1100C, SanDisk Dead - 1GB SD
Keep your Z on a bungee, you never know.....

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Launching Scripts / Bin Files From Qpe
« Reply #1 on: March 03, 2005, 09:03:38 pm »
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
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

craigtyson

  • Sr. Member
  • ****
  • Posts: 462
    • View Profile
Launching Scripts / Bin Files From Qpe
« Reply #2 on: March 04, 2005, 07:14:35 am »
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.
Craig
SL-C1000, Angstrom GPE 2007.12r13
Ambicom WL1100C, SanDisk UltraII 1GB SD
 
Old Faithfull - SL-5500 battery out of the C750 (see below) TKC v1 (New) 1GB SD
Dead - SL-C750, Cacko 1.23 lite (Dropped, very messy!)
Ambicom WL1100C, SanDisk Dead - 1GB SD
Keep your Z on a bungee, you never know.....

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Launching Scripts / Bin Files From Qpe
« Reply #3 on: March 04, 2005, 07:54:54 am »
Is it done by sending a QCop command to the app after it has started? Just a thought.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

craigtyson

  • Sr. Member
  • ****
  • Posts: 462
    • View Profile
Launching Scripts / Bin Files From Qpe
« Reply #4 on: March 04, 2005, 08:08:06 am »
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
« Last Edit: March 04, 2005, 08:08:31 am by craigtyson »
Craig
SL-C1000, Angstrom GPE 2007.12r13
Ambicom WL1100C, SanDisk UltraII 1GB SD
 
Old Faithfull - SL-5500 battery out of the C750 (see below) TKC v1 (New) 1GB SD
Dead - SL-C750, Cacko 1.23 lite (Dropped, very messy!)
Ambicom WL1100C, SanDisk Dead - 1GB SD
Keep your Z on a bungee, you never know.....