OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: javamatte on January 12, 2005, 01:59:27 pm
-
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
-
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?
-
I've removed the desktop entries for addressbook and datebook. 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!