On 22/06/11 15:08, Malte Gell wrote:
Will Stephenson<wstephenson@suse.de> wrote
On Tuesday 21 Jun 2011 17:25:08 Malte Gell wrote:
When I remove e.g. the .odt extension from a file, KDE still recognizes it as an Open Document file. So, am I right this means KDE also uses Linux´ magic numbers system to detect file type Yes. Interesting. On the other hand you can fool KDE by changing the extension, when I change the .odt to .jpg KDE thinks it´s an image, it does not do a double check whether the extension is correct so you can fool KDE with a wrong extension.
Malte
Look in /usr/share/mime to understand how Linux determines file types. It can be determined via the first few bits or filename globbing and the different rules have different priorities. So in some cases changing the filename extension will fool the DE, in some cases it won't, depends on the specific filetype. (This is not in any way KDE specific) Regards, Tejas -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kde+help@opensuse.org