4
« on: January 29, 2005, 09:15:20 pm »
Here's the situation:
I have a file called MyZSafe (no extension) that is my ZSafe saved database. I would like it to open up in ZSafe from the Doctab when I tap on it. Of course, when I tap on it (it's icon is a ?) I get a message that OZ does not know what to do with a document of type application/octet-stream.
Fair enough. Obviously there is some connection not made. So after reading posts about mime types and .desktop files I thought I would try something. First, note, that there is currently no .desktop file in the directory with my MyZSafe file.
So here's what I did: I opened /etc/mime.types in vi and added the line: application/zsafe zsafe to the beginning of the file. Then I renamed my MyZSafe file to MyZSafe.zsafe
Sure enough, after restarting Opie I get the MyZSafe icon in the Doctab to have a ZSafe icon and when I tap it it opens in ZSafe. But (and this is what sucks) as soon as I do that I get a second MyZSafe icon in the Doctab and sure enough, a MyZSafe.desktop file has been created in the directory that holds the MyZSafe file.
So, what I would like to know is:
1. How do I fix my scenario? (I would like only one icon for the MyZSafe file in the Doctab and I would like it to open in ZSafe when I tap it.)
2. Where can I read about exactly how these .desktop files and mime.types all work?
3. (And further to #2, I noticed that a .desktop file for an application icon and one for a document icon are structured differently. Is there info on exactly what goes into each type of .desktop file somwhere?)
Thanks everyone.
Kent!