![]() ![]() |
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 |
|
|
|
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? |
|
|
|
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.
Thanks for the reply, though! |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 22nd May 2013 - 10:20 PM |