From: Riccardo Cecolin Date: 2010-04-12T08:19:09+09:00 Subject: Re: Finding an icon for a file in Linux John Bentley wrote: > Hi, > > I am writing a file manager and am looking for the best way to get the > icon for a file type. I am assuming it uses mimetypes, but I haven't > found a good solution yet. If anyone could point me in the right > direction I'd appreciate it. > > Thanks. > You could parse output of "file" command: http://en.wikipedia.org/wiki/File_(command)