How are file-extensions/mime-types/icons/default applications associated?

You need to:

  1. Add a new MIME type
  2. Associate that MIME type with a program (see man xdg-mime for more details):

    xdg-mime default APPLICATION MIMETYPE(S)