[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xdg
Subject:    Re: Xdgmime implementation problem (text/plain)
From:       DaveMDS <list () gurumeditation ! it>
Date:       2005-11-09 16:32:09
Message-ID: 43722489.8080108 () gurumeditation ! it
[Download RAW message or body]

DaveMDS wrote:

> Hi, I need some help on the use of the f.d.o. xdgmime implementation:
>
> xdgmime don't recognize text/plain file such as TODO files or any 
> other unknow text file
> (it recognize file like Makefile, AUTORS, README).
> In other word any generic text file will be of type 
> 'application/octet-stream' instead of 'text/plain'
> Is it normal?
> it's a shared-mime-info problem?
> Should I have to check manually the content of the file?
>
Other strange report from xdg_mime_get_mime_type_for_file():

directory,device,loopback and all other linux-oriented files.

All this file will be reported as 'application/octet-stream'.

So i think I have to check this special case myself, but I don't know
what mime-name give to the files to be standard, ex:
-directory should be 'application/x-directory' or 'inode/directory' or what?
-I have no idea for other type (device, ecc).

Thanks
Dave Andreoli



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic