In package shared-mime-info there is update-mime-database.c and around
line 51 there is a hard-programmed list of mime types used to flag
invalid MIME types

================
/* This is the list of directories to scan when finding old type files to
 * delete. It is also used to warn about invalid MIME types.
 */
const char *media_types[] = {
  "text",
  "application",
  "image",
  "audio",
  "inode",
  "video",
  "message",
  "model",
  "multipart",
  "x-content",
  "x-epoc",
  "x-scheme-handler",
};
================

in the get_type function around line 261 the program scans the hard-
coded list of mime types or it returns the error that everyone is
complaining about.

================
  for (i = 0; i < G_N_ELEMENTS(media_types); i++)
  {
    if (strcmp(media_types[i], type->media) == 0)
      return type;
  }

  g_warning("Unknown media type in type '%s'", name);
================

Dean M.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to shared-mime-info in Ubuntu.
https://bugs.launchpad.net/bugs/289592

Title:
  Unknown media types in /usr/share/mime/packages/kde.xml

Status in shared-mime-info:
  Confirmed
Status in kde4libs package in Ubuntu:
  Invalid
Status in shared-mime-info package in Ubuntu:
  Triaged
Status in kde4libs package in Debian:
  New
Status in shared-mime-info package in Debian:
  Confirmed

Bug description:
  Here is the problem:

  # update-mime-database /usr/share/mime
  [...]
  Unknown media type in type 'uri/mms'

  Unknown media type in type 'uri/mmst'

  Unknown media type in type 'uri/mmsu'

  Unknown media type in type 'uri/pnm'

  Unknown media type in type 'uri/rtspt'

  Unknown media type in type 'uri/rtspu'

  It seems to come from this file:
    /usr/share/mime/packages/kde.xml

To manage notifications about this bug go to:
https://bugs.launchpad.net/shared-mime-info/+bug/289592/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to