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