OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How Do I Associate A File Type With A Program?, Files
g333
post Apr 19 2005, 06:19 PM
Post #1





Group: Members
Posts: 196
Joined: 8-December 04
Member No.: 5,853



How do I associate a file type with a program?
cool.gif
Go to the top of the page
 
+Quote Post
euroclie
post Apr 19 2005, 07:27 PM
Post #2





Group: Members
Posts: 205
Joined: 5-January 05
From: Paris, France
Member No.: 6,125



The /home/QtPalmtop/etc/mime.types file contains the list of the file types recognized by the Zaurus. The /home/QtPalmtop/etc/slmime.types file contains the directories where the Zaurus will save a specific file type. Changing those files (and restarting Qtopia) can help to achieve what you're looking for...

In the .desktop file associated with your application, you'll find the mime type with which the application is associated.

Say, for instance, that you want to open .pdb plucker files with Opie Reader.

Its .desktop is /home/QtPalmtop/apps/Applications/uqtreader.desktop (or something like this, depending how/where you installed it).

In this file we find the line:

MimeType=etext/*

so if we modify the /home/QtPalmtop/etc/mime.types file to add one line like this:

etext/plucker pdb

and then reboot the zaurus, the .pdb plucker files are shown with the appropriate (Opie Reader) icon, and tapping on such files automatically launches Opie Reader with that document opened...

Hope this helps!

PS: Maybe there's a quicker or more efficient/elegant way... The same question has been somewhat bothering me for a while, so when I saw your post I decided to have a quick look at this, and that's what I could gather so far... Any hint / correction / addition welcomed! smile.gif
Go to the top of the page
 
+Quote Post
zenyatta
post Apr 20 2005, 12:47 AM
Post #3





Group: Members
Posts: 366
Joined: 4-November 03
From: Slovakia
Member No.: 850



Google for "qtopia-addmimetype" - it is a script that does this automatically. As far as I know it isn't installed in any ROM by default. So if you find it on the Net, copy it to your Z and try running it (presumably it will tell you what parameters it needs).

Hope this helps,
z.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 24th April 2014 - 08:08 AM