I am also very aware of the fact that "." normally isn't in PATH. I was referring to being in another folder and having the executable folder in the PATH
OK, now when that is cleared: MIME types and that stuff isn't really my area of expertise; however here's how I understand it:
There are many types of files in Linux (Files, Executables, INodes/Directories, Devices, FIFOs etc.)
Executables have the x-bit set.
Directories use the x-bit to indicate that they are browsable.
That's what the x-bit does.
What I'm talking about are files in general (like a .pnd-file, which is NOT an executable etc.), and how they get recognized. We all know that this isn't through extensions, you can't fool Linux that easily.
So, how for example a jpeg-image gets recognized is by letting a library examine it (forgot it's name), and that library will then spit out a mime type for that file by using an internal recognition algorithm; in this case "image/jpeg". Then, the file manager or whatever has actions or previews or stuff like that saved for that mime type, and thus recognizes it as a jpeg-image.
Now let me hear, which part of this is wrong, according to you?
EDIT:
Proof (kinda). This is how KDE saves file associations:
HiRes:
CODE
http://img9.imageshack.us/my.php?image=snapshot4.png
Look to the left; that's the system I call MIME-type system.
The file patterns are only secondary recognition methods.
And hey, in any Linux distro, try removing the .jpg-extension from the file. It still gets recognized. Voilà.