|
From: Robert L. <Rob...@in...> - 2005-05-17 07:34:53
|
On Tue, May 17, 2005 12:38 am, Peter Chubb said: >>>>>> "Robert" == Robert Longbottom <Rob...@in...> writes: > > Robert> On Sun, May 15, 2005 11:42 pm, Peter Chubb said: >>> Hi, I have some PNG files on my z5500 running Opie 3.5.3. Drawpad >>> can display these. But in the doc tab, tapping on a PNG file gices >>> a little popup which says: No application is defined for this >>> document. Type is image/png. >>> >>> How can I associate a document type with an application? Is it >>> possible to do drag'n'drop with the document icons onto an >>> application icon in a different tab? >>> >>> Peter C > > Robert> I don't know about the drag-drop approach (that would be nice > Robert> :-) ), but somewhere in /etc there is a file, I think it's > Robert> /etc/mime.types - you need to setup the file type in there and > Robert> then assign the filetype to an application. > > /etc/mime.types maps from file extensions to mime type. > I can;t find anything mapping from application to mime types that the > app can handle. Ah, yes, I've just looked on my Z. You also need to configure the .desktop file for the application you want to launch to register the mime-type with it. I remember now! Look in /opt/QtPalmtop/apps/<whereever> for the .desktop file of the application you want to launch : eg hancomsheet.desktop and look for the lines that look like : MimeType=application/excel;application/hancomsheet MimeTypeIcons=DocumentTypeExcel;DocumentTypeHancomSheet this means that excel and hancomsheet files get opened with hancomsheet. I'm guessing you will have to refresh your lauchers / restart opie / restart your z for this to take effect. Robert. |