Thread handling and mime type in .desktop file fixed