I solved this problem but I cannot remember which was the package that solved it when upgraded. At the moment, the system is updated Debian etch which includes shared-mime-info 0.19-2 and the bug does not show up.