From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FBFeU-0007cg-WF for garchives@archives.gentoo.org; Mon, 20 Feb 2006 18:20:51 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k1KIIZZ3008767; Mon, 20 Feb 2006 18:18:35 GMT Received: from Princeton.EDU (postoffice01.Princeton.EDU [128.112.129.75]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k1KI6o0g018483 for ; Mon, 20 Feb 2006 18:06:50 GMT Received: from smtpserver2.Princeton.EDU (smtpserver2.Princeton.EDU [128.112.129.148]) by Princeton.EDU (8.12.9/8.12.9) with ESMTP id k1KI6nxY019809 for ; Mon, 20 Feb 2006 13:06:49 -0500 (EST) Received: from sep.dynalias.net (fez.Princeton.EDU [128.112.129.190]) (authenticated bits=0) by smtpserver2.Princeton.EDU (8.12.9/8.12.9) with ESMTP id k1KI6m3P014998 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Mon, 20 Feb 2006 13:06:49 -0500 (EST) Received: by sep.dynalias.net (Postfix, from userid 1001) id D00775EB252; Mon, 20 Feb 2006 13:07:09 -0500 (EST) Date: Mon, 20 Feb 2006 13:07:09 -0500 From: Willie Wong To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] mime type experts / *.pps Message-ID: <20060220180709.GA24910@princeton.edu> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <200602201920.07521.uwix@iway.na> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200602201920.07521.uwix@iway.na> User-Agent: Mutt/1.5.11 X-Archives-Salt: b66cd1ee-23df-4d51-9913-5b41f736eb79 X-Archives-Hash: 7d25a0f28f9a09c6066d76b142ddb26a The 'file' command and mime types are different things. On Mon, Feb 20, 2006 at 07:20:07PM +0200, Penguin Lover Uwe Thiem squawked: > this is about Powerpoint Presentations and Gentoo and (almost) any other linux > *.ppt do not cause any problems but *.pps do. If you do a "file something.pps" > it reports it as "Microsoft Office Document" without qualifying what kind of > document. If you do a 'file something.ppt', I am fairly certain it will also say Microsoft Office Document. While grepping for 'Excel' and 'Word' both turn up some stuff in /usr/share/misc/file/magic, there isn't anything that corresponds to 'Power' except for PowerPC related stuff. In fact, I am pretty sure that documents from newer versions of Microsoft Office would all return that string when file is ran against them. > This is not true if you have set file associations of Microsoft documents to > specific applications in any other office suite, including but not limited to > koffice. In the case of koffice, kword gets started, It starts to load the > presentation and decides correctly that this isn't a word document. The question is how you are recognizing the files? From what you are saying, it sounds to me like you are double-clicking in some KDE file browser and letting KDE do the job of deciding which application to call. Since I know naught about KDE, I can't help there. > So my question is: Aren't there any mime type and/or magic file experts here > that can extent the magic file to recognise *.pps files correctly? However, one thing that came to mind is for you to check the mime.types file in /etc/mime.types and make sure [01:01 PM]wwong ~ $ grep pps /etc/mime.types application/vnd.ms-powerpoint ppt pps pps files are indeed associated as powerpoint. HTH W -- "This class makes me feel like Ralph Wiggam..." ~DeathMech, Some Student. P-town PHY 205 Sortir en Pantoufles: up 100 days, 10:19 -- gentoo-user@gentoo.org mailing list