[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#269108: Java Web Start mime type registration



Package: java-common
Version: 0.22
Severity: wishlist

In order to get Java Web Start working properly (with java-package and everything), I think this package should contain a mime type for application/x-java-jnlp-file. Files of this type are JNLP launch files, used to start Java Web Start applications. I have submitted this inclusion upstream to freedesktop.org for inclusion in their official registry. I do not know how long this process takes.

In the meantime, I think it would be acceptable if Debian added this mime type.

Doing so involves creating a file /usr/share/mime/packages/java.xml, containing the contents:

<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info";>
  <mime-type type="application/x-java-jnlp-file">
    <comment>Java Network Launcher</comment>
    <magic priority="80">
      <match offset="0:256" type="string" value="&lt;!DOCTYPE jnlp" />
      <match offset="0:64" type="string" value="&lt;jnlp" />
    </magic>
    <glob pattern="*.jnlp" />
  </mime-type>
</mime-info>

And adding "update-mime-database /usr/share/mime" to the postinst script. Addtionally a dependency on "shared-mime-info" should be added, or not.

Thanks for the consideration.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (700, 'unstable'), (600, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.6
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8

-- no debconf information



Reply to: