From owner-freebsd-hackers Wed Apr 28 13:38:20 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from cimlogic.com.au (cimlog.lnk.telstra.net [139.130.51.31]) by hub.freebsd.org (Postfix) with ESMTP id B076C154C4 for ; Wed, 28 Apr 1999 13:38:12 -0700 (PDT) (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.9.1/8.9.1) id GAA28992; Thu, 29 Apr 1999 06:44:45 +1000 (EST) (envelope-from jb) From: John Birrell Message-Id: <199904282044.GAA28992@cimlogic.com.au> Subject: Re: Adding desktop support In-Reply-To: from Tony Finch at "Apr 28, 1999 3:17:23 pm" To: dot@dotat.at (Tony Finch) Date: Thu, 29 Apr 1999 06:44:45 +1000 (EST) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Tony Finch wrote: > adrian@freebsd.org wrote: > > > >If you want to do it for data, then you would have to make mime-type > >(or whatever you use to slap on a file type) part of the filesystem > >entry. > > What about using the magic directory, as used by file(1) and Apache's > mod_mime_magic? I have a separate proposal for magic(5) as used by file(1). For each file type, add a comment: #"file.xpm" immediately before the first magic value of each type. Since it is a comment, file(1) will ignore it, whereas other applications can look for it as a special case. It's a kludge, but it should work. I'm still prototyping that. -- John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/ CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message