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

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Oz Mime Types?, /etc/mime.types seems to have no effect
javamatte
post Jan 12 2005, 10:59 AM
Post #1





Group: Members
Posts: 18
Joined: 15-October 04
Member No.: 5,029



Can someone "in the know" explain how OZ (or OPIE? not sure who is responsible) handles mime types? I have a file /etc/mime.types that lists out a whole bunch of mime types and their extensions. All good so far. I notice that text/plain is an entry. In AdvancedFM, files with those extensions (for text/plain) show up with the TextEditor icon. Looking at the texteditor.desktop file (in /opt/QtPalmtop), I notice line like this:
MimeType=text/plain

When I tap-and-hold on a text file, the open with TextEditor context option appears (separate from the "Open as text file" that is always there).

I want to do this with other applications (namely kAddressbook and .vcf files), but OPIE does not seem to associate my .desktop entry with MimeType=text/x-vCard with the text/x-vCard entry in /etc/mime.types.

I must be missing something basic, but I can't seem to find ANY documentation on the .desktop file specification or how OPIE reads it/uses it etc. The only mimetype docs I can find say that OPIE should be looking for a file in /opt/QtPalmtop/etc/mime.types, which definitely does NOT exist on my system.

Can anyone straighten this out? I'm desparate to get my beaming working, and the mime types seem to be the main thing holding it up...

-Matt
Go to the top of the page
 
+Quote Post
MrSquishy
post Jan 12 2005, 11:42 AM
Post #2





Group: Members
Posts: 159
Joined: 3-June 04
Member No.: 3,558



Maybe /opt/QtPalmtop/apps/1Pim/addressbook.desktop is already stealing the text/x-vCard mimetype?

I just added MimeTypes for XMMS in the xmms.desktop file and AdvanceFM made the connection after an Opie Restart.

Try removing the MimeType line for Opie's Addressbook to see if kAddressbook can then see it.

I take it that the "Beam File" option in AdvancedFM isnt working as you'd like it to?
Go to the top of the page
 
+Quote Post
javamatte
post Jan 12 2005, 12:17 PM
Post #3





Group: Members
Posts: 18
Joined: 15-October 04
Member No.: 5,029



I've removed the desktop entries for addressbook and datebook. sad.gif Did that before trying any of this, and it still doesn't work. I'll try associating some other (never used) type with another application and see if that works, but otherwise, I'm still at a loss.

Thanks for the reply, though!
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: 22nd May 2013 - 10:20 PM