Hello list users: How kde decides (konqueror, krusader) the type of a file? Sometimes the file's icon in krusader does not correspond to the extension. Thanks, IG Bódy Sylviért versengenek Egy piros lámpánál rögtönzött gyorsulási versennyel próbált neki imponálni két fiú. VIDEO http://ad.adverticum.net/b/cl,1,6022,221779,269882/click.prm -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Istvan Gabor wrote:
Hello list users:
How kde decides (konqueror, krusader) the type of a file? Sometimes the file's icon in krusader does not correspond to the extension.
that's because file extensions can be anything -- and file "type" (i.e. what programs can use it) is NOT determined of the operating system -- that's for you, the user to decide, and exercise in any way which you want.(*) I can make a JPEG format file, and call it "picture.doc", and even KDE should be able to tell that it's a JPEG formatted file, not a Microsoft Word document. Or you can just call your JPEG file "picture", without any tag letters at all. A file's type is determined by the internal structure of it's contents, NOT by any suffixes. for more explanation, read up on the "file" command: man file (*) there really aren't any different types of data files on Unix and Linux... the only different TYPES of files recognized by system are "regular" files, named pipes, sockets, directories, symbolic links, and the "block special" and "character special" device drivers found in /dev. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
that's because file extensions can be anything -- and file "type" (i.e. what programs can use it) is NOT determined of the operating system -- that's for you, the user to decide, and exercise in any way which you want.(*)
I can make a JPEG format file, and call it "picture.doc", and even KDE should be able to tell that it's a JPEG formatted file, not a Microsoft Word document.
Or you can just call your JPEG file "picture", without any tag letters at all.
A file's type is determined by the internal structure of it's contents, NOT by any suffixes.
Hello: All this is true but my question was how konqueror/krusader finds out that what is the file's type. An example: How konqueror knows that .jpg should be opened by an image viewer and not by a text editor? When I set the associations I set the application depending on the extension. Or do I misunderstand something? Thanks, IG Kisorsolunk 10 LAPTOP-ot! Most hirdess az apronet.hu-n, és MEGNYERHETED az egyiket! http://ad.adverticum.net/b/cl,1,6022,221222,269392/click.prm -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Nov 8, 2007 4:58 PM, Istvan Gabor <suseuser04@freemail.hu> wrote:
Hello:
All this is true but my question was how konqueror/krusader finds out that what is the file's type. An example: How konqueror knows that .jpg should be opened by an image viewer and not by a text editor? When I set the associations I set the application depending on the extension. Or do I misunderstand something?
Thanks, IG
Kisorsolunk 10 LAPTOP-ot! Most hirdess az apronet.hu-n, és MEGNYERHETED az egyiket! http://ad.adverticum.net/b/cl,1,6022,221222,269392/click.prm
I think you mean file association. If so, start the Control Centre (Configure Desktop). Click on KDE Components -> File Associations. That will be where the association can be made. HTH
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 * Istvan Gabor <suseuser04@freemail.hu> [11-07-07 11:43]:
How kde decides (konqueror, krusader) the type of a file?
man file will give a better explanation that I can.
Sometimes the file's icon in krusader does not correspond to the extension.
the extension does not *define* the file tipe, but is just part of the file-name and *may* indicate it's type depending on the intention of the "namer". - -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn4472 (GNU/Linux) iD8DBQFHMhJ7ClSjbQz1U5oRAoV4AKCc+TCwByHjyeN9fCZce6LlWbFSswCgnizm f6+QT3vHihdtBKavaHf43ek= =SzXi -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Aaron Kulkis
-
Chee How Chua
-
Istvan Gabor
-
Patrick Shanahan