If the file is in a directory that contains a dot then registering a new filetype fails. Example: ~/test.x/index.shtml Open -> mozilla [X] Remember -> index.shtml is added to applications.xml and not just .shtml. A possible patch is attached.
This bug only affects 4.0.1 since 4.1 uses new routines with freedesktop mime types.
Ok, but if there will be a 4.0.2 it should be fixed since it is not difficult.
Applied patch (modified) to 4_0 branch